A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
VbScriptXtra Reference/objAuto.CodePage

objAuto.CodePage

Syntax

nCodePage=objAuto.CodePage
objAuto.CodePage=nCodePage

Gets

Integer value, which indicates the code page number used in Unicode/MBCS text conversion routines.

Sets

Integer value, which indicates the code page number to be used in Unicode/MBCS text convertion routines.

Description

The CodePage property allows the xtra to be used in multilingual environment.
Director uses MBCS (Multibyte Character Set). Every character is encoded by one or two bytes. The encoding is based on the particular code page number.
Many COM Automation applications store text data in Unicode encoding (Office, Databases etc.). Unicode text does not rely on the current code page setting, since every character is encoded by two bytes.
This property defines particular code page number to be used in text conversion routines of the xtra.

By default, the CodePage property is 0 - ANSI code page. It defines the default behavior for the system.

The CodePage property affects all text conversion operations initiated by this instance of the wrapper. All wrappers created by this wrapper inherit the value of CodePage property. In other words, all VbScriptXtra wrappers created by xtra-level method CreateObject get the default value of the code page, which is zero. Wrapper instances derived from some wrapper instance inherit the code page setting.

Take care when changing the default value of this property, since inappropriate code page number may result in empty string as a result of text conversion. Below is the list of possible code page numbers:

Code page number Meaning
0 ANSI code page
2 Macintosh code page
1 OEM code page
42 Symbol code page (Win2k)
3 The current thread's ANSI code page (Win2k)
65000 Translate using UTF-7 (Win2k, NT 4.0)
65001 Translate using UTF-8 (Win2k, NT 4.0)
037 EBCDIC
437 MS-DOS United States
500 EBCDIC "500V1"
708 Arabic (ASMO 708)
709 Arabic (ASMO 449+, BCON V4)
710 Arabic (Transparent Arabic)
720 Arabic (Transparent ASMO)
737 Greek (formerly 437G)
775 Baltic
850 MS-DOS Multilingual (Latin I)
852 MS-DOS Slavic (Latin II)
855 IBM Cyrillic (primarily Russian)
857 IBM Turkish
860 MS-DOS Portuguese
861 MS-DOS Icelandic
862 Hebrew
863 MS-DOS Canadian-French
864 Arabic
865 MS-DOS Nordic
866 MS-DOS Russian
869 IBM Modern Greek
874 Thai
875 EBCDIC
932 Japanese
936 Chinese (PRC, Singapore)
949 Korean
950 Chinese (Taiwan; Hong Kong SAR, PRC)
1026 EBCDIC
1200 Unicode (BMP of ISO 10646)
1250 Windows 3.1 Eastern European
1251 Windows 3.1 Cyrillic
1252 Windows 3.1 US (ANSI)
1253 Windows 3.1 Greek
1254 Windows 3.1 Turkish
1255 Hebrew
1256 Arabic
1257 Baltic
1361 Korean (Johab)
10000 Macintosh Roman
10001 Macintosh Japanese
10006 Macintosh Greek I
10007 Macintosh Cyrillic
10029 Macintosh Latin 2
10079 Macintosh Icelandic
10081 Macintosh Turkish


Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com