ImageGear Professional for Windows ActiveX
GetHostEncoding Method

Description:

Indicates what kind of host encoding a system uses. Allows you to determine whether a system is Roman or non-Roman. (Non-Roman is also known as CJK-capable, that is, capable of handling multi-byte character sets, such as Chinese, Japanese, or Korean.)

Host encoding is a platform-dependent encoding for the host machine. For non-UNIX Roman systems, it is MacRomanEncoding in Mac OS and WinAnsiEncoding in Windows. In UNIX (except HP-UX) Roman systems, it is ISO8859-1 (ISO Latin-1); for HP-UX, it is HP-ROMAN8. See Appendix D in the PDF Reference for descriptions of MacRomanEncoding, WinAnsiEncoding, and PDFDocEncoding.

For non-Roman systems, the host encoding may be a variety of encodings, which are defined by a CMap (character map). See Section 5.6.4 in the PDF Reference for a list of predefined CMaps.

Use GetHostEncoding to determine if a system's host encoding is Roman or not.

Syntax:

GetHostEncoding () As Long

Return Value:

0 for a Roman system; nonzero for a non-Roman system. Users should simply test whether this value is 0 or not.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback