Converts a Unicode string to a multibyte string
#include <WinAPI.au3>
_WinAPI_WideCharToMultiByte ( $vUnicode [, $iCodePage = 0 [, $bRetString = True]] )
$vUnicode | String, DllStruct or Pointer to a byte array structure containing Unicode text to be converted |
$iCodePage | [optional] Code page to use in performing the conversion: 0 - The current system Windows ANSI code page 1 - The current system OEM code page 2 - The current system Macintosh code page 3 - The Windows ANSI code page for the current thread 42 - Symbol code page 65000 - UTF-7 65001 - UTF-8 |
$bRetString | [optional] Flags that indicate whether to return a String or a DllStruct (default True : String) |
Success: | A string or a DllStruct containing a multibyte string |
Failure: | Sets the @error flag to non-zero |
Search WideCharToMultiByte in MSDN Library.