8.34 CODEPAGE (Display or set codepage conversion table)

8.34.1 Function

The CODEPAGE command displays or sets the codepage conversion table. If an operand is given then
the codepage is set to the specified page, if the page is valid. If no operand is specified, the current code-
page is displayed.

With the QCODEPAGES panel command a list of all valid codepage mappings can be displayed.

8.34.2 Syntax

Descriptive

codepage cmd [operands]]

Diagram

¬¬¬¬ ¬¬¬¬¬¬¬¬¬ÊÍ





codepage ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬«







cmd ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬«







¬¬¬ operands ¬¬

8.34.3 Parameter

DEFAULT

“DEFAULT” specifies the traditional Hercules codepage.

codepage

Specifies the codepage conversion table used for ASCII / EBCDIC translation.
Supported codepage mappings are shown in the table below. Iconv single byte
codepages may also be used (e.g. “UTF8/EBCDIC-CP-NL”).

USER

This specifies that the user specific codepage conversion tables (see CPUPDT
system parameter and console command) have to be activated.

MAINT

MAINT and its arguments is the same as the CP_UPDT system parameter. Please
see CP_UPDT for details.

Supported codepage mappings:

Mapping

ASCII

EBCDIC

437/037

437 PC United States

037 United States/Canada

437/500

437 PC United States

500 Latin 1

437/1047

437 PC United States

1047 Open Systems Latin 1

Mapping

ASCII

EBCDIC

819/037

819 ISO-8859-1 Latin 1

037 United States/Canada

819/037v2

819 ISO-8859-1 Latin 1

037 United States/Canada SHARE

819/273

819 ISO-8859-1 Latin 1

273 CECP Austria/Germany

819/277

819 ISO-8859-1 Latin 1

277 CECP Denmark/Norway

819/278

819 ISO-8859-1 Latin 1

278 CECP Finland/Sweden

819/280

819 ISO-8859-1 Latin 1

280 CECP Italy

819/284

819 ISO-8859-1 Latin 1

284 CECP Spain

819/285

819 ISO-8859-1 Latin 1

285 CECP United Kingdom

819/297

819 ISO-8859-1 Latin 1

297 CECP France

819/500

819 ISO-8859-1 Latin 1

500 CECP International

819/1047

819 ISO-8859-1 Latin 1

1047 Open Systems Latin 1

850/273

850 PC Latin 1

273 Austria/Germany

850/1047

850 PC Latin 1

1047 Open Systems Latin 1

1252/037

1252 Windows Latin 1

037 United States/Canada

1252/037v2

1252 Windows Latin 1

037 United States/Canada SHARE

1252/1047

1252 Windows Latin 1

1047 Open Systems Latin 1

1252/1140

1252 Windows Latin 1

1140 United States/Canada with Euro sign

Table 18: Supported codepage mappings

8.34.4 Examples

Example 1:

Display the current codepage conversion table.

HHC00013I Herc command: 'codepage'

HHC01476I Codepage is 'default'

Figure 70: CODEPAGE command (display current codepage conversion table)

Example 2:

Set the codepage conversion table to 437/037.

HHC00013I Herc command: 'codepage 437/037'

HHC01474I Using 'internal' codepage conversion table '437/037'

Figure 71: CODEPAGE command (set codepage conversion table)

Previous Page Next Page