ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Converts a string in UTF8 format into an ANSI or Unicode string.
Example
// Conversion d'une chaîne UTF8 au format ANSI
RésultatConversion = UTF8ToString(ChaîneUTF8, charsetAnsi)
Syntax
<Result> = UTF8ToString(<UTF-8 string to convert> [, <Destination charset>])
<Result>: Character string
  • In ANSI: ANSI character string.
    • If the destination character set is not specified, the string is converted to ANSI using the current character set.
    • If the destination character set is specified, the string is converted to ANSI using the specified character set.
  • In Unicode mode, Unicode character string containing the conversion. The destination character set is ignored.
  • EOT if conversion problems occurred.
<UTF-8 string to convert>: Character string
String to convert.
<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).
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetCurrent
(Default value)
Uses the current character set specified with ChangeCharset (charsetOccidental by default)
charsetDefaultUses the computer's default character set. No character set is forced.
charsetEastEuropeEastern European characters (Polish, etc.)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetKoreanKorean characters
charsetRussianRussian characters
charsetThaiThai characters
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetTurkishTurkish characters
charsetUTF8Used to manage UTF-8 (used in XML, for example).
charsetVietnameseVietnamese characters
Remarks
Component: wd300vm.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help