Code Page Definition File

The Code Page Definition File maps the IBM AFP code page name to its code page global identifier (CPGID) and to a Web browser character set.

The section header CODEPG is followed by a list of AFP code pages and their attributes. The first attribute in each line is the AFP code page global identifier that maps to a Code Page Map File (see Code Page Map File for more information about mapping code pages). The second attribute is the Web browser character set that you decide is the best match for your AFP code page. The last line gives the default attribute values to be used when a default is required. The next figure shows an example of the contents of the cpdef.fnt file.

Example of cpdef.fnt

[CODEPG]
	;codepage = cpgid,wincp
	T1DCDCFS=1003,ANSI
	T1DEBASE=2058,ANSI
	T1D0BASE=2063,ANSI
	T1D0GP12=2085,ANSI
	T1GI0395=2079,ANSI
	T1GPI363=2066,SYMBOL
	T1V10037=37,ANSI
	T1V10273=273,ANSI
	T1000290=290,ANSI
	T1000310=310,ANSI
	T1000423=423,ANSI
	T1000905=905,ANSI
	DEFAULT=361,ANSI

The next table describes the attributes and values for CODEPG.

CODEPG section

Attribute Values Shipped Default Description
cpgid Pre-defined CPGID or your own defined CPGID in the range 65280 to 65534 361 Code page global identifier
wincp ANSI or SYMBOL ANSI Windows character set

Rules:

  1. Attributes must be separated by a comma.
  2. Only the first attribute, cpgid, is required.
  3. You can set a default code page. The default code page that is set in the file must be the last entry in the file.
  4. If you create your own code page, you must assign it a unique code page identifier. Leading zeros are not valid. (You can use an IBM code page global identifier, but only if the character-to-hexadecimal code mapping is the same for your code page.)