Default Hardware Codepage
   HOME

TheInfoList



OR:

In computing, a hardware code page (HWCP) refers to a
code page In computing, a code page is a character encoding and as such it is a specific association of a set of printable characters and control characters with unique numbers. Typically each number represents the binary value in a single byte. (In some co ...
supported natively by a hardware device such as a
display adapter A graphics card (also called a video card, display card, graphics adapter, VGA card/VGA, video adapter, display adapter, or mistakenly GPU) is an expansion card which generates a feed of output images to a display device, such as a computer moni ...
or
printer Printer may refer to: Technology * Printer (publishing), a person or a company * Printer (computing), a hardware device * Optical printer for motion picture films People * Nariman Printer ( fl. c. 1940), Indian journalist and activist * Jame ...
. The
glyph A glyph () is any kind of purposeful mark. In typography, a glyph is "the specific shape, design, or representation of a character". It is a particular graphical representation, in a particular typeface, of an element of written language. A g ...
s to present the characters are stored in the alphanumeric character generator's resident read-only memory (like
ROM Rom, or ROM may refer to: Biomechanics and medicine * Risk of mortality, a medical classification to estimate the likelihood of death for a patient * Rupture of membranes, a term used during pregnancy to describe a rupture of the amniotic sac * R ...
or flash) and are thus not user-changeable. They are available for use by the system without having to load any
font In metal typesetting, a font is a particular size, weight and style of a typeface. Each font is a matched set of type, with a piece (a "sort") for each glyph. A typeface consists of a range of such fonts that shared an overall design. In mod ...
definitions into the device first. Startup messages issued by a PC's
System BIOS In computing, BIOS (, ; Basic Input/Output System, also known as the System BIOS, ROM BIOS, BIOS ROM or PC BIOS) is firmware used to provide runtime services for operating systems and programs and to perform hardware initialization during the ...
or displayed by an
operating system An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs. Time-sharing operating systems schedule tasks for efficient use of the system and may also in ...
before initializing its own code page switching logic and font management and before switching to
graphics mode Computer display standards are a combination of aspect ratio, display size, display resolution, color depth, and refresh rate. They are associated with specific expansion cards, video connectors and monitors. History Various computer display ...
are displayed in a computer's default hardware code page.


Code page assignments

In North American
IBM-compatible PC IBM PC compatible computers are similar to the original IBM PC, XT, and AT, all from computer giant IBM, that are able to use the same software and expansion cards. Such computers were referred to as PC clones, IBM clones or IBM PC clones. ...
s, the hardware code page of the display adapter is typically
code page 437 Code page 437 (CCSID 437) is the character set of the original IBM PC (personal computer). It is also known as CP437, OEM-US, OEM 437, PC-8, or DOS Latin US. The set includes all printable ASCII characters as well as some accented letters (diacri ...
. However, various portable machines as well as (Eastern) European, Arabic, Middle Eastern and Asian PCs used a number of other code pages as their hardware code page, including
code page 100 In communications and information processing, code is a system of rules to convert information—such as a letter (alphabet), letter, word, sound, image, or gesture—into another form, sometimes data compression, shortened or secrecy, secret ...
("Hebrew"),
151 Year 151 (CLI) was a common year starting on Thursday (link will display the full calendar) of the Julian calendar. At the time, it was known as the Year of the Consulship of Condianus and Valerius (or, less frequently, year 904 ''Ab urbe cond ...
("Nafitha Arabic"),
667 __NOTOC__ Year 667 ( DCLXVII) was a common year starting on Friday (link will display the full calendar) of the Julian calendar. The denomination 667 for this year has been used since the early medieval period, when the Anno Domini calendar era ...
(" Mazovia"),
737 737 most commonly refers to: * Boeing 737, an American narrow-body passenger airplane ** Boeing 737 Classic ** Boeing 737 MAX ** Boeing 737 Next Generation * AD 737, a year in the common era * 737 BC, a year * 737 (number), a number 737 may als ...
("Greek"),
850 ''For codepage, see CP850.'' __NOTOC__ Year 850 (Roman numerals, DCCCL) was a common year starting on Wednesday (link will display the full calendar) of the Julian calendar. Events By place Europe * February 1 – King Ramiro I of A ...
("Multilingual"), encodings like "
Roman-8 In computing HP Roman is a family of character sets consisting of HP Roman Extension, HP Roman-8, HP Roman-9 and several variants. Originally introduced by Hewlett-Packard around 1978, revisions and adaptations were published several times up ...
", " Kamenický", " KOI-8", " MIK", and others. Most display adapters support a single 8-bit hardware code page only. The bitmaps were often stored in an EPROM in a
DIP socket In microelectronics, a dual in-line package (DIP or DIL), is an electronic component package with a rectangular housing and two parallel rows of electrical connecting pins. The package may be through-hole mounted to a printed circuit board (P ...
. At most, the hardware code page to be activated was user-selectable via
jumper Jumper or Jumpers may refer to: Clothing *Jumper (sweater), a long-sleeve article of clothing; also called a top, pullover, or sweater **A waist-length top garment of dense wool, part of the Royal Navy uniform and the uniform of the United State ...
s, configuration
EEPROM EEPROM (also called E2PROM) stands for electrically erasable programmable read-only memory and is a type of non-volatile memory used in computers, usually integrated in microcontrollers such as smart cards and remote keyless systems, or as a ...
s or
CMOS setup Nonvolatile BIOS memory refers to a small memory on PC motherboards that is used to store BIOS settings. It is traditionally called CMOS RAM because it uses a volatile, low-power complementary metal-oxide-semiconductor (CMOS) SRAM (such as ...
. However, some of the display adapters designed for Eastern European, Arabic and Hebrew PCs supported multiple software-''switchable'' hardware code pages, also named font pages, selectable via I/O ports or additional BIOS functions. In contrast to this, printers frequently support several user-switchable character sets, often including various variants of the 7-bit
ISO/IEC 646 ISO/IEC 646 is a set of ISO/IEC standards, described as ''Information technology — ISO 7-bit coded character set for information interchange'' and developed in cooperation with ASCII at least since 1964. Since its first edition in 1 ...
character sets such as
code page 367 __NOTOC__ Year 367 ( CCCLXVII) was a common year starting on Monday of the Julian calendar. At the time, it was known as the Year of the Consulship of Lupicinus and Iovanus (or, less frequently, year 1120 '' Ab urbe condita''). The denominatio ...
(" ISO/IEC 646-US /
ASCII ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because of ...
"), sometimes also a couple of 8-bit code pages like
code page 437 Code page 437 (CCSID 437) is the character set of the original IBM PC (personal computer). It is also known as CP437, OEM-US, OEM 437, PC-8, or DOS Latin US. The set includes all printable ASCII characters as well as some accented letters (diacri ...
,
850 ''For codepage, see CP850.'' __NOTOC__ Year 850 (Roman numerals, DCCCL) was a common year starting on Wednesday (link will display the full calendar) of the Julian calendar. Events By place Europe * February 1 – King Ramiro I of A ...
,
851 __NOTOC__ Year 851 ( DCCCLI) was a common year starting on Thursday (link will display the full calendar) of the Julian calendar. Events By place Asia * Bagrat II Bagratuni, Armenian prince and leader of a rebellion against the Abbasi ...
,
852 __NOTOC__ Year 852 ( DCCCLII) was a leap year starting on Friday (link will display the full calendar) of the Julian calendar. Events By place Europe * March 4 – Trpimir I, duke ('' knez'') of Croatia, and founder of the Trpimi ...
,
853 __NOTOC__ Year 853 ( DCCCLIII) was a common year starting on Sunday (link will display the full calendar) of the Julian calendar. Events By place Byzantine Empire * May 22 – A Byzantine fleet (85 ships and 5,000 men) sacks and d ...
,
855 __NOTOC__ Year 855 ( DCCCLV) was a common year starting on Tuesday (link will display the full calendar) of the Julian calendar. Events By place Byzantine Empire * November 20 – Theoktistos, co-regent of the Empire on behalf of ...
, 857,
860 __NOTOC__ Year 860 ( DCCCLX) was a leap year starting on Monday (link will display the full calendar) of the Julian calendar. Events By place Byzantine Empire * June 18 – Byzantine–Rus' War: A fleet of about 200 Rus' vessel ...
,
861 __NOTOC__ Year 861 ( DCCCLXI) was a common year starting on Wednesday (link will display the full calendar) of the Julian calendar. Events By place Europe * March – Robert the Strong is appointed margrave of Neustria by King Ch ...
,
863 __NOTOC__ Year 863 ( DCCCLXIII) was a common year starting on Friday (link will display the full calendar) of the Julian calendar. Events By place Byzantine Empire * September 3 – Battle of Lalakaon: A Byzantine army confronts ...
,
865 __NOTOC__ Year 865 ( DCCCLXV) was a common year starting on Monday (link will display the full calendar) of the Julian calendar. Events By place Europe * King Louis the German divides the East Frankish Kingdom among his three sons. Ca ...
, and
866 __NOTOC__ Year 866 ( DCCCLXVI) was a common year starting on Tuesday (link will display the full calendar) of the Julian calendar. Events By place Byzantine Empire * April 21 – Bardas, the regent of the Byzantine Empire, is murd ...
. Printers for the Eastern European or Middle Eastern markets sometimes support other locale-specific hardware code pages to choose from. They can be selected via DIP switches or configuration menus on the printer, or via specific escape sequences.


Support in operating systems

When operating systems initialize their code page switching logic, they need to know but have no means to determine the previously active hardware code page by themselves. Therefore, for code page switching to work correctly, the hardware code page needs to be specified. Under DOS and
Windows 9x Windows 9x is a generic term referring to a series of Microsoft Windows computer operating systems produced from 1995 to 2000, which were based on the Windows 95 kernel and its underlying foundation of MS-DOS, both of which were updated in subs ...
this is accomplished by specifying the hardware code page as a parameter (hwcp) to the
device driver In computing, a device driver is a computer program that operates or controls a particular type of device that is attached to a computer or automaton. A driver provides a software interface to hardware devices, enabling operating systems and ot ...
s DISPLAY.SYS and PRINTER.SYS in
CONFIG.SYS CONFIG.SYS is the primary configuration file for the DOS and OS/2 operating systems. It is a special ASCII text file that contains user-accessible setup or configuration directives evaluated by the operating system's DOS BIOS (typically residing ...
: : DEVICE=…\DISPLAY.SYS CON=(type,hwcp,n, (n,m)) : DEVICE=…\PRINTER.SYS PRN=(type,hwcp,n) If multiple hardware code pages are supported in OEM issues, the first hardware code page (hwcp1) in the list specifies the default hardware code page: : DEVICE=…\DISPLAY.SYS CON=(type,(hwcp1,hwcp2,…),n, (n,m)) : DEVICE=…\PRINTER.SYS PRN=(type,(hwcp1,hwcp2,…),n) If no hardware code page(s) are specified, these drivers default either to a dummy code page number 999 or assume the hardware code page to be equal to the
primary code page Primary or primaries may refer to: Arts, entertainment, and media Music Groups and labels * Primary (band), from Australia * Primary (musician), hip hop musician and record producer from South Korea * Primary Music, Israeli record label Works * ...
(the first code page listed in COUNTRY.SYS files for a particular country with the country code either specified in the CONFIG.SYS
COUNTRY A country is a distinct part of the world, such as a state, nation, or other political entity. It may be a sovereign state or make up one part of a larger state. For example, the country of Japan is an independent, sovereign state, while the ...
directive or assumed to be the operating system's internal default, usually 1 (US) in Western issues of DOS). In many English-speaking countries, the primary code page is either 437 (f.e. in the US) or 850 (f.e. in the UK, Ireland and Canada), so that, without specifying a different code page, the system would often assume one of these to be the corresponding device's default hardware code page as well. If a hardware code page does not match one of those with official code page assignments, an arbitrary number from the range 57344–61439 (E000h–EFFFh) for
user-definable code page In computing, a code page is a character encoding and as such it is a specific association of a set of printable characters and control characters with unique numbers. Typically each number represents the binary value in a single byte. (In some c ...
s or 65280–65533 (FF00h–FFFDh) for private use code pages could be specified per IBM CDRA to give the operating system a non-conflictive "handle" to select that code page.
Arabic Arabic (, ' ; , ' or ) is a Semitic languages, Semitic language spoken primarily across the Arab world.Semitic languages: an international handbook / edited by Stefan Weninger; in collaboration with Geoffrey Khan, Michael P. Streck, Janet C ...
and
Hebrew MS-DOS MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few oper ...
do not use DISPLAY.SYS and PRINTER.SYS, but provide similar facilities using ARABIC.COM, HEBREW.COM, and SK.


OEM code pages

Hardware code pages are also
OEM code page Windows code pages are sets of characters or code pages (known as character encodings in other operating systems) used in Microsoft Windows from the 1980s and 1990s. Windows code pages were gradually superseded when Unicode was implemented in Wind ...
s. The designation "OEM", for "
original equipment manufacturer An original equipment manufacturer (OEM) is generally perceived as a company that produces non-aftermarket parts and equipment that may be marketed by another manufacturer. It is a common industry term recognized and used by many professional or ...
", indicates that the character set could be changed by the manufacturer to meet different markets. However, OEM code pages do not necessarily reside in ROM, but include so called prepared code pages, (aka
downloadable character set In computer networks, download means to ''receive'' Data (computing), data from a remote system, typically a Server (computing), server such as a web server, an File Transfer Protocol, FTP server, an email server, or other similar system. This ...
s or downloadable fonts), character sets loaded as raster fonts into the font RAM of suitable display adapters (like Sirius 1/ Victor 9000,
NEC APC is a Japanese multinational information technology and electronics corporation, headquartered in Minato, Tokyo. The company was known as the Nippon Electric Company, Limited, before rebranding in 1983 as NEC. It provides IT and network solut ...
,
HP 100LX The HP 200LX Palmtop PC (F1060A, F1061A, F1216A), also known as project ''Felix'', is a personal digital assistant introduced by Hewlett-Packard in August 1994. It was often called a Palmtop PC, and it was notable that it was, with some mi ...
/ 200LX/ 700LX,
Persyst GRaphic Animation System for Professionals (GRASP) was the first multimedia animation program for the IBM PC family of computers. It was also at one time the most widely used animation format. Originally conceived by Doug Wolfgram under the name ...
's BoB Color Adapter,
Hercules Hercules (, ) is the Roman equivalent of the Greek divine hero Heracles, son of Jupiter and the mortal Alcmena. In classical mythology, Hercules is famous for his strength and for his numerous far-ranging adventures. The Romans adapted the Gr ...
' HGC+, InColor and Network Plus with RAMFONT, and IBM's MCGA,
EGA Ega or EGA may refer to: Military * East German Army, the common western name for the National People's Army * Eagle, Globe, and Anchor, the emblem of the United States Marine Corps People * Aega (mayor of the palace), 7th-century noble of Neus ...
,
VGA Video Graphics Array (VGA) is a video display controller and accompanying de facto graphics standard, first introduced with the IBM PS/2 line of computers in 1987, which became ubiquitous in the PC industry within three years. The term can now ...
, etc.) and printers as well. Hence, the group of OEM code pages is a superset of hardware code pages.


See also

* PC-9800 series * Alt codes


Notes


References


External links

* {{DEFAULTSORT:Hardware code page DOS code pages Character encoding