Converts a UTF-8 string to ANSI.
sString is string = "Antananarivo"
// Conversion to ANSI string
sAnsiString is string ANSI = UTF8ToAnsi(sString)
Syntax
<Result> = UTF8ToAnsi(<UTF-8 string to convert> [, <Destination charset>])
<Result>: Character string
ANSI character string.
<UTF-8 string to convert>: Character string
String to convert. This character string is not modified.
<Destination charset>: Optional integer
Character set that will be used to create the string. By default, this parameter corresponds to the current character set (specified with ChangeCharset). | |
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 Europe characters (Polish, etc.). |
charsetGreek | Greek characters. |
charsetHebrew | Hebrew characters. |
charsetJapanese | Japanese characters. |
charsetKorean | Korean characters. |
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. |