Project

General

Profile

$utfdecode » History » Version 5

Per Amundsen, 05/01/2026 04:25 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 5 Per Amundsen
| gdi |  the gdi charset number representing a codepage. |
13 4 Per Amundsen
14 5 Per Amundsen
table(ktable).
15
|*Gdi Charset*|*Codepage*|
16
| 000 | ANSI_CHARSET |
17
| 001 | DEFAULT_CHARSET |
18
| 002 | SYMBOL_CHARSET |
19
| 077 | MAC_CHARSET |
20
| 128 | SHIFTJIS_CHARSET |
21
| 129 | HANGEUL_CHARSET |
22
| 130 | JOHAB_CHARSET |
23
| 134 | GB2312_CHARSET |
24
| 136 | CHINESEBIG5_CHARSET |
25
| 161 | GREEK_CHARSET |
26
| 162 | TURKISH_CHARSET |
27
| 163 | VIETNAMESE_CHARSET |
28
| 177 | HEBREW_CHARSET |
29
| 178 | ARABIC_CHARSET |
30
| 186 | BALTIC_CHARSET |
31
| 204 | RUSSIAN_CHARSET |
32
| 222 | THAI_CHARSET |
33
| 238 | EASTEUROPE_CHARSET |
34
| 255 | OEM_CHARSET |