PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Avoid using CharactUnicode
  • UNICODE and ANSI
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the character corresponding to the specified Unicode code.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
PHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
PHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
PHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
MyCharacter is UNICODE string
MyCharacter = CharactUnicode(49)    // Returns "1"
MyCharacter = CharactUnicode(87)    // Returns "W"

Trace(Asc(Middle("読みます",1,1))) // Displays 35501
Trace(CaractUnicode(35501) ) //
Syntax
<Result> = CharactUnicode(<Unicode Code to Convert>)
<Result>: Unicode character string
Character corresponding to the specified Unicode code.
<Unicode Code to Convert>: Integer
Value to convert. A WLanguage error occurs if the value is invalid.
Windows Mobile This value is included between 0 and 65535.
Remarks

Avoid using CharactUnicode

The following preset constants enable you to avoid using CharactUnicode:
ConstantValueFunction
CRCharact(13) + Charact(10)Carriage Return
TABCharact(9)Tabulation
ESCCharact(27)Esc key
ESPCharact(160)Non-breaking space
Windows Mobile

UNICODE and ANSI

About 30 specific characters have a different code according to their format (UNICODE or ANSI). If the value of <Unicode Code to Convert> corresponds to one of these characters (value included between 0 and 255), CharactUnicode returns the same result in UNICODE and in ANSI.
For example:
Charact1 = CharactUnicode(128)     // Returns "€"
Charact2 = CharactUnicode(8364)      // Returns "€"
The values of <Unicode Code to Convert> included between 256 and 65535 allow CharactUnicode to manage all the UNICODE characters.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment