Next: , Previous: dummy, Up: set-show


2.21.18 encoding

The encoding command selects a character encoding. Syntax:

           set encoding {<value>}
           show encoding
     

Valid values are

        default     - tells a terminal to use its default encoding
        iso_8859_1  - the most common Western European font used by many
                      Unix workstations and by MS-Windows. This encoding is
                      known in the PostScript world as 'ISO-Latin1'.
        iso_8859_2  - used in Central and Eastern Europe
        iso_8859_15 - a variant of iso_8859_1 that includes the Euro symbol
        koi8r       - popular Unix cyrillic encoding
        koi8u       - ukrainian Unix cyrillic encoding
        cp437       - codepage for MS-DOS
        cp850       - codepage for OS/2, Western Europe
        cp852       - codepage for OS/2, Central and Eastern Europe
        cp1250      - codepage for MS Windows, Central and Eastern Europe
     

Generally you must set the encoding before setting the terminal type. Note that encoding is not supported by all terminal drivers and that the device must be able to produce the desired non-standard characters. The PostScript, X11 and wxt terminals support all encodings. OS/2 Presentation Manager switches automatically to codepage 912 for `iso_8859_2`.