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:
a nonzero AspLCID metabase value for
the application
the server locale
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.
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:
the AspCodePage metabase value for
the application
the server code page
| Character Set | Name | Code Page |
|---|---|---|
| ASCII | us-ascii | 20127 |
| Western European (Windows) | windows-1252 | 1252 |
| Unicode, 8-bit encoding | utf-8 | 65001 |
| Unicode, 16-bit encoding | utf-16 | 1200 |
For a complete listing of character sets and code pages, see the Character Set chart.