|
|
|
|
|
|
|
|
|
|
StringToUTF8 (Function) In french: ChaîneVersUTF8 Converts an ANSI or Unicode string to UTF-8.
MaChaîneUnicode is string Unicode = "début"
MaChaîneEnUTF8 is Buffer = StringToUTF8(MaChaîneUnicode)
IF UTF8Valid(MaChaîneEnUTF8) THEN
MaChaîneUnicode is string Unicode = UTF8ToString(MaChaîneEnUTF8)
END
Syntax
<Result> = StringToUTF8(<String to convert> [, <Charset of string to convert>])
<Result>: Character string or Buffer - Character string or buffer in UTF-8 format,
- EOT if conversion problems occurred.
<String to convert>: Character string String to convert to UTF-8. <Charset of string to convert>: Optional integer Source character set of string to convert. By default, this parameter corresponds to the charsetCurrent constant (specified in 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 European 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 |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|