Internationalization

Provides fomatting and alphabets for various cultures.

Locale

The locale determines the formatting for dates (field order and separator), times, currency (currency symbol and default displayed precision), and numbers (decimal separator and grouping separators). The first value found in this list is used as the ASP locale:

  1. Session.LCID property

  2. Server Directives

  3. a nonzero AspLCID metabase value for the application

  4. the server locale

Note

The VBScript locale exists independantly of the ASP locale. Since VBScript itself frequently does the formatting in ASP, be sure to call SetLocale when changing locale.

For a listing of locale identifiers, see the Locale ID Chart.

CodePage and Charset

The character set is the method used to represent text electronically. You may notify the client which character set is in use by setting Response.Charset property, which appends ;charset=character-set to the HTTP Content-Type header.

The code page, a numeric character set ID, controls how text is encoded as it is sent to the client. The first value found in this list is used as the code page:

  1. Session.CodePage property

  2. Server Directives

  3. the AspCodePage metabase value for the application

  4. the server code page

Some Common Character Sets

Character SetNameCode Page
ASCIIus-ascii20127
Western European (Windows)windows-12521252
Unicode, 8-bit encodingutf-865001
Unicode, 16-bit encodingutf-161200

For a complete listing of character sets and code pages, see the Character Set chart.