Equinox Online Help - Language Reference - A to Z
ChangeEncoding |
|
---|---|
Applies to | |
Syntax | ChangeEncoding, source, target, how |
Action | [Statement] Changes the encoding of the string supplied between CP (Equinox native 8 bit format, Windows ANSI current code page), UTF-8, and UTF-16 (Unicode). |
Scope | Usable anywhere. |
Notes | This statement converts characters in the source string to a different encoding in the target string. The parameter how may take the following values:
Note that Equinox requires data to be in CP format in order to display it, and the method language operates on string data as a stream of CP bytes. This statement provides a simplified interface to the Win32 functions MultiByteToWideChar and WideCharToMultiByte. |
Category | Conversions |
See Also | |
Example | This example converts "Hello" to UTF-16, and prints a hexadecimal version of it string w, h |