Home | Sign in | English EN
  • Conversion result
  • UTF-8 and ANSI conversion
  • Conversion in PHP
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
<String type>.AnsiToUnicode (Function)
In french: <Type Chaîne>.AnsiVersUnicode
Converts a character string in ANSI format (Windows) into a character string in UNICODE format.
  • ANSI is the character set used in Windows.
  • UNICODE is a character encoding standard. UNICODE is used to manage different languages and character sets.
Versions 16 and later
Java This function is now available for Java applications.
New in version 16
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Reports and QueriesWindowsUser code (UMC)PHPAjax
// Code to use in a non-Unicode project
MyUnicodeString is UNICODE string
MyAnsiString is ANSI string
MyAnsiString = "Developing is fantastic"
MyUnicodeString = MyAnsiString.AnsiToUnicode(charsetGreek)
Reports and QueriesWindowsUser code (UMC)PHPAjax

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.
charsetAnsiRoman characters in ANSI standard.
charsetArabicArabic characters.
charsetBalticBaltic characters.
charsetChineseChinese characters (People's Republic of China).
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan).
charsetKoreanKorean characters
(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 Europe characters (Polish, etc.)
charsetGreekGreek characters.
charsetHebrewHebrew characters.
charsetJapaneseJapanese characters.
Versions 20 and later
New in version 20
Mac Roman character set (used in previous versions of Macintosh).
charsetRussianRussian characters.
charsetThaiThai characters.
charsetTurkishTurkish characters.
charsetUTF8Used to manage UTF-8 (used in XML, for example).
charsetVietnameseVietnamese characters.

Conversion result

The result of the conversion is a UNICODE string.. This string can only be handled by variables and functions that support UNICODE.
In case of confusion between a UNICODE and an ANSI string, the conversion will be implicitly performed.
For more details on Unicode, see Managing UNICODE.
Reports and QueriesWindowsUser code (UMC)AjaxStored procedures

UTF-8 and ANSI conversion

To convert an ANSI string to UTF-8, use StringToUTF8.
To convert a UFT-8 string to ANSI, use:

Conversion in PHP

The conversion in PHP uses the following extensions:
  • the php_iconv.dll extension
  • the php_mbstring.dll extension
If none of these PHP extensions are used, only Latin characters will be converted (e.g., Chinese or Russian characters will not be converted).
The php_iconv.dll and php_mbstring.dll extensions are currently proposed on PHP servers. To find out if your hosting provider offers these extensions, simply enter the following information in a search engine: phpinfo <Hosting provider>.
To install these extensions on your own PHP server, simply uncomment the desired extension in the PHP.INI file.
Component: wd260vm.dll
Minimum version required
  • Version 24
This page is also available for…
Click [Add] to post a comment