Added in 1.9.0

$utfdecode(text, gdi)

Decodes a UTF-8 string and returns it in default windows encoding.

Parameters

Parameter Description
text The UTF-8 text to decode.
gdi the gdi charset number representing a codepage.
Gdi Charset Codepage
000 ANSI_CHARSET
001 DEFAULT_CHARSET
002 SYMBOL_CHARSET
077 MAC_CHARSET
128 SHIFTJIS_CHARSET
129 HANGEUL_CHARSET
130 JOHAB_CHARSET
134 GB2312_CHARSET
136 CHINESEBIG5_CHARSET
161 GREEK_CHARSET
162 TURKISH_CHARSET
163 VIETNAMESE_CHARSET
177 HEBREW_CHARSET
178 ARABIC_CHARSET
186 BALTIC_CHARSET
204 RUSSIAN_CHARSET
222 THAI_CHARSET
238 EASTEUROPE_CHARSET
255 OEM_CHARSET