Setting the code page for shapefiles

There are a number of methods for setting the code page for a shapefile:

Steps:
  1. Before creating a new shapefile in ArcPad, first open the ArcPad Options dialog and browse to the Locale tab. the Locale tab includes a drop-down list to choose the code page for all new shapefiles. The default code page is UTF-8.

    NO ALT TEXT

  2. Set the code page in the <shapefile>.cpg file. This .cpg file would only contain the required code page number, e.g. 1251 (for Russian Windows).
  3. Set the code page in the <shapefile>.apl file, using ArcPad Studio. The LOCALE element can be added to the LAYER element in the .apl file.
  4. Use the Set DBF Codepage tool in ArcPad Studio. The tool, which is located on the Tools menu, prompts for a DBF table, then displays the DBF Codepage dialog box to view or change the code page for the DBF.

    NO ALT TEXT

    The code page for a shapefile can be viewed on the Geography tab of the shapefile’s Layer Properties dialog box.

    NO ALT TEXT

    The code page for a shapefile can be viewed on the Geography tab of the shapefile’s Layer Properties dialog box. The table below lists the code pages that ArcPad supports. The Header column refers to the LDIDs that ArcPad supports in the header of the shapefile’s DBF table:

    Header

    Code page

    Description

    0x01

    437

    U.S. MS-DOS

    0x02

    850

    International MS-DOS

    0x03

    1252

    Window ANSI

    0x08

    865

    Danish OEM

    0x09

    437

    Dutch OEM

    0x0A

    850

    Dutch OEM*

    0x0B

    437

    Finnish OEM

    0x0D

    437

    French OEM

    0x0E

    850

    French OEM*

    0x0F

    437

    German OEM

    0x10

    850

    German OEM*

    0x11

    437

    Italian OEM

    0x12

    850

    Italian OEM*

    0x13

    932

    Japanese Shift-JIS

    0x14

    850

    Spanish OEM*

    0x15

    437

    Swedish OEM

    0x16

    850

    Swedish OEM*

    0x17

    865

    Norwegian OEM

    0x18

    437

    Spanish OEM

    0x19

    437

    English OEM (Britain)

    0x1A

    850

    English OEM (Britain)*

    0x1B

    437

    English OEM (U.S.)

    0x1C

    863

    French OEM (Canada)

    0x1D

    850

    French OEM*

    0x1F

    852

    Czech OEM

    0x22

    852

    Hungarian OEM

    0x23

    852

    Polish OEM

    0x24

    860

    Portugese OEM

    0x25

    850

    Potugese OEM*

    0x26

    866

    Russian OEM

    0x37

    850

    English OEM (U.S.)*

    0x40

    852

    Romanian OEM

    0x4D

    936

    Chinese GBK (PRC)

    0x4E

    949

    Korean (ANSI/OEM)

    0x4F

    950

    Chinese Big 5 (Taiwan)

    0x50

    874

    Thai (ANSI/OEM)

    0x57

    1252

    ANSI

    0x58

    1252

    Western European ANSI

    0x59

    1252

    Spanish ANSI

    0x64

    852

    Eastern European MS-DOS

    0x65

    866

    Russian MS-DOS

    0x66

    865

    Nordic MS-DOS

    0x67

    861

    Icelandic MS-DOS

    0x6A

    737

    Greek MS-DOS (437G)

    0x6B

    857

    Turkish MS-DOS

    0x6C

    863

    French-Canadian MS-DOS

    0x78

    950

    Taiwan Big 5

    0x79

    949

    Hangul (Wansung)

    0x7A

    936

    PRC GBK

    0x7B

    932

    Japanese Shift-JIS

    0x7C

    874

    Thai Windows/MS-DOS

    0x86

    737

    Greek OEM

    0x87

    852

    Slovenian OEM

    0x88

    857

    Turkish OEM

    0xC8

    1250

    Eastern European Windows

    0xC9

    1251

    Russian Windows

    0xCA

    1254

    Turkish Windows

    0xCB

    1253

    Greek Windows

    0xCC

    1257

    Baltic Windows

    *Secondary code page

9/23/2019