|
|
|
|
|
- Conversion result
- UTF-8 and ANSI conversion
- Conversion in PHP
<ANSI string>.AnsiToUnicode (Function) In french: <Chaîne ANSI>.AnsiVersUnicode Converts an ANSI string (Windows) to a UNICODE string. Reminder: - ANSI is the character set used in Windows.
- UNICODE is a character encoding standard. UNICODE is used to manage different languages and character sets.
// Code to use in a non-Unicode project MyUnicodeString is UNICODE string MyAnsiString is ANSI string MyAnsiString = "Developing is fantastic" MyUnicodeString = MyAnsiString.AnsiToUnicode(charsetGreek)
Syntax
Converting an ANSI character string Hide the details
<Result> = <String to convert>.AnsiToUnicode([<Charset>])
<Result>: UNICODE character string - String in UNICODE format.
- EOT if a conversion problem occurred.
<String to convert>: Character string ANSI string to convert. <Charset>: Optional Integer constant Character set that will be used for the conversion. | | charsetAnsi | Roman characters in ANSI standard. | charsetArabic | Arabic characters. | charsetBaltic | Baltic characters. | charsetChinese | Chinese characters (People's Republic of China). | charsetCurrent (Default value) | Uses the current character set specified with ChangeCharset (charsetOccidental by default). | charsetDefault | Uses the computer's default character set. No character set is forced. | charsetEastEurope | Eastern European characters (Polish, etc.) | charsetGreek | Greek characters. | charsetHebrew | Hebrew characters. | charsetJapanese | Japanese characters. | charsetKorean | Korean characters | charsetMac | Mac Roman character set (used in previous versions of Macintosh). | charsetRussian | Russian characters. | charsetThai | Thai characters. | charsetTraditionalChinese | Traditional Chinese characters (Republic of Taiwan). | charsetTurkish | Turkish characters. | charsetUTF8 | Used to manage UTF-8 (used in XML, for example). | charsetVietnamese | Vietnamese characters. |
Remarks Conversion result The result of the conversion is a UNICODE string.. This string can only be handled by variables and functions that support UNICODE. If you use the wrong format, the conversion will be implicitly performed.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|