PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Conversion to PHP
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Converts a string in UTF8 format into a string in ANSI or UNICODE format.
Versions 15 and later
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
New in version 15
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Convert a UTF8 string into a string in ANSI format
ConversionResult = UTF8ToString(UTF8String, charsetAnsi)
Syntax
<Result> = UTF8ToString(<UTF8 String to Convert> [, <Destination Charset>])
<Result>: Character string
  • In ANSI mode, ANSI character string.
    • If the destination character set is not specified, the conversion into ANSI uses the current character set.
    • If the destination character set is specified, the conversion into ANSI uses the specified character set.
  • In Unicode mode, UNICODE character string containing the conversion. The destination character set is ignored.
  • EOT if conversion problems occurred.
<UTF8 String to Convert>: Character string (with quotes)
String to convert.
WINDEVWEBDEV - Server code This string is an ANSI string in UTF8 format.
iPhone/iPadWindows Mobile This parameter corresponds to a buffer containing a string in UTF8 format. The result will be an Unicode string containing the conversion.
<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 by ChangeCharset).
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetKoreanKorean characters
charsetCurrent
(Default value)
Uses the current character set specified by ChangeCharset (charsetOccidental by default)
charsetDefaultUses the default character set defined for the computer. No character set is forced.
AndroidAndroid Widget Java Only this value is available.
charsetEastEuropeCharacters of Eastern Europe (Polish, ...)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetRussianRussian characters
charsetThaiThai characters
charsetTurkishTurkish characters
charsetUTF8Used to manage the UTF8 format (used in XML for example).
charsetVietnameseVietnamese characters
Universal Windows 10 App This parameter is not available.
Remarks
PHP

Conversion to PHP

The conversion performed in PHP is using the following PHP extensions:
  • the php_iconv.dll extension
  • the php_mbstring.dll extension
If none of these PHP extensions is found, only the Latin characters will be converted (the Chinese or Russian characters will not be converted for example).
The php_iconv.dll and php_mbstring.dll extensions are currently proposed on the PHP servers. To find out whether these extensions are proposed by your hosting company, enter the following information in a search engine: phpinfo <Name of hosting company>.
To install these extensions on your own PHP server, all you have to do is uncomment the requested extension in the PHP.INI file.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment