Foundation > Internationalization > Locale Requirements > Locale Name Format
 
Locale Name Format
As you can see, locale names are system-dependent. Most systems, however, tend to follow the XPG (X/Open Portability Guide) naming convention, where a locale name has the following format:
language_territory.encoding
language is the language name; territory is the territory name (a language can be spoken in different areas or countries: French, for example, is spoken in France, Canada, Belgium, Switzerland, and other countries); and encoding is a code set or an encoding method by which characters are coded.
On UNIX Systems
The following examples show the format of a locale name as displayed on different UNIX systems. The locale is for French as spoken in France with the Latin1 encoding.
Solaris 8
fr or fr_FR.iso8859-1
HP-UX 11
fr_FR.iso88591
Red Hat Entreprise Linux 4.0
fr_FR.iso88591
Suze 10.0
fr_FR
AIX 5.1
fr_FR or fr_FR.ISO8859-1
On Microsoft Windows Systems
The following example shows the format of a locale on a Windows system. The locale is for French as spoken in France with Windows Code Page 1252.
Windows XP
French_France.1252

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.