Project

General

Profile

$utfdecode » History » Version 4

Per Amundsen, 05/01/2026 04:23 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 4 Per Amundsen
*$utfdecode(text, gdi)*
4 1 Per Amundsen
5
Decodes a "UTF-8":https://en.wikipedia.org/wiki/UTF-8 string and returns it in default windows encoding.
6
7
*Parameters*
8
9 3 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11 1 Per Amundsen
| text | The "UTF-8":https://en.wikipedia.org/wiki/UTF-8 text to decode. |
12 4 Per Amundsen
| gdi |  the gdi charset number representing a codepage, possible value are: |
13
14
<pre>
15
    000 - ANSI_CHARSET
16
    001 - DEFAULT_CHARSET
17
    002 - SYMBOL_CHARSET
18
    077 - MAC_CHARSET
19
    128 - SHIFTJIS_CHARSET
20
    129 - HANGEUL_CHARSET
21
    130 - JOHAB_CHARSET
22
    134 - GB2312_CHARSET
23
    136 - CHINESEBIG5_CHARSET
24
    161 - GREEK_CHARSET
25
    162 - TURKISH_CHARSET
26
    163 - VIETNAMESE_CHARSET
27
    177 - HEBREW_CHARSET
28
    178 - ARABIC_CHARSET
29
    186 - BALTIC_CHARSET
30
    204 - RUSSIAN_CHARSET
31
    222 - THAI_CHARSET
32
    238 - EASTEUROPE_CHARSET
33
    255 - OEM_CHARSET
34
</pre>