# Documentation/Encodings

### From libHaru.org wiki

< Documentation

# Singlebyte Encodings

The following single-byte character sets are available in libHaru. Application can get an encoding handle by using HPDF_GetEncoder().

# | Type of Font | Description
--- | --- | ---
1 | StandardEncoding | It is the default encoding of PDF
2 | MacRomanEncoding | The standard encoding of Mac OS
3 | WinAnsiEncoding | The standard encoding of Windows
4 | FontSpecific | Use the built-in encoding of a font.
5 | ISO8859-2 | Latin Alphabet No.2
6 | ISO8859-3 | Latin Alphabet No.3
7 | ISO8859-4 | Latin Alphabet No.4
8 | ISO8859-5 | Latin Cyrillic Alphabet
9 | ISO8859-6 | Latin Arabic Alphabet
10 | ISO8859-7 | Latin Greek Alphabet
11 | ISO8859-8 | Latin Hebrew Alphabet
12 | ISO8859-9 | Latin Alphabet No. 5
13 | ISO8859-10 | Latin Alphabet No. 6
14 | ISO8859-11 | Thai, TIS 620-2569 character set
15 | ISO8859-13 | Latin Alphabet No. 7
16 | ISO8859-14 | Latin Alphabet No. 8
17 | ISO8859-15 | Latin Alphabet No. 9
18 | ISO8859-16 | Latin Alphabet No. 10
19 | CP1250 | Microsoft Windows Codepage 1250 (EE)
20 | CP1251 | Microsoft Windows Codepage 1251 (Cyrl)
21 | CP1252 | Microsoft Windows Codepage 1252 (ANSI)
22 | CP1253 | Microsoft Windows Codepage 1253 (Greek)
23 | CP1254 | Microsoft Windows Codepage 1254 (Turk)
24 | CP1255 | Microsoft Windows Codepage 1255 (Hebr)
25 | CP1256 | Microsoft Windows Codepage 1256 (Arab
26 | CP1257 | Microsoft Windows Codepage 1257 (BaltRim)
27 | CP1258 | Microsoft Windows Codepage 1258 (Viet)
28 | KOI8-R | Russian Net Character Set

# Multibyte Encodings

The following character sets for multi-byte character set are available in libHaru.

# | Type of Encodings | Description
--- | --- | ---
1 | GB-EUC-H | EUC-CN encoding
2 | GB-EUC-V | Vertical writing version of GB-EUC-H
3 | GBK-EUC-H | Microsoft Code Page 936 (lfCharSet 0x86) GBK encoding
4 | GBK-EUC-V | Vertical writing version of GBK-EUC-H
5 | ETen-B5-H | Microsoft Code Page 950 (lfCharSet 0x88) Big Five character set with ETen extensions
6 | ETen-B5-V | Vertical writing version of ETen-B5-H
7 | 90ms-RKSJ-H | Microsoft Code Page 932, JIS X 0208 character
8 | 90ms-RKSJ-V | Vertical writing version of 90ms-RKSJ-V
9 | 90msp-RKSJ-H | Microsoft Code Page 932, JIS X 0208 character (proportional)
10 | EUC-H | JIS X 0208 character set, EUC-JP encoding
11 | EUC-V | Vertical writing version of EUC-H
12 | KSC-EUC-H | KS X 1001:1992 character set, EUC-KR encoding
13 | KSC-EUC-V | Vertical writing version of KSC-EUC-V
14 | KSCms-UHC-H | Microsoft Code Page 949 (lfCharSet 0x81), KS X 1001:1992 character set plus 8822 additional hangul, Unified Hangul Code (UHC) encoding (proportional)
15 | KSCms-UHC-HW-H | Microsoft Code Page 949 (lfCharSet 0x81), KS X 1001:1992 character set plus 8822 additional hangul, Unified Hangul Code (UHC) encoding (fixed width)
16 | KSCms-UHC-HW-V | Vertical writing version of KSCms-UHC-HW-H

Application has to invoke the following functions before using multibyte encodings.

# | Function Name | Description
--- | --- | ---
1 | HPDF_UseCNSEncodings() | It makes simplified Chinese Encodings(GB-EUC-H, GB-EUC-V, GBK-EUC-H, GBK-EUC-V) to become available.
2 | HPDF_UseCNTEncodings() | It makes traditional Chinese Encodings(ETen-B5-H, ETen-B5-V) to become available.
3 | HPDF_UseJPEncodings() | It makes Japanese Encodings(90ms-RKSJ-H, 90ms-RKSJ-V, 90msp-RKSJ-H, EUC-H, EUC-V) to become available.
4 | HPDF_UseKREncodings() | It makes Korean Encodings (KSC-EUC-H, KSC-EUC-V, KSCms-UHC-H, KSCms-UHC-HW-H, KSCms-UHC-HW-V) to become available.

Retrieved from "http://daylessday../../../../articles/d/o/c/Documentation_Encodings_d2ec.html"

##### Views

- Page
- Discussion
- View source
- History

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link