Global Development and Computing Portal Global Development and Computing Portal

NLS information page

About NLSWeb

Select an Operating System:

Note that the following predefined NLSData table is provided only as a reference. This information can be retrieved using Win32 API GetLocaleInfoW and .NET Framework CultureInfo class.

NLS Information for Windows Vista


Go BackSelect another LCID


Albanian (Albania)
041C Codepage info
LCID041C
Locale name Albanian (Albania)
Language-English nameAlbanian
Language-native nameshqipe (Shqipėria)
ANSI codepage1250
OEM codepage852
041C NLS formatting
Number formatting
Positive number example12.346,00
Negative number example-12.346,00
Decimal separator,
Digits after decimal separator2
Digit grouping3;0
Thousands separator.
Negative format symbol-
Number list separator;
Leading and trailing zeros: 0.700 formatted0,70
Standard digits0123456789
System of measurements Metric
Currency formatting
Positive sample12.346,00Lek
Negative sample12.346,00Lek
Currency symbolLek
Decimal separator,
Thousand separator.
Digit grouping3;0
Time formatting
Time sample12:15:12.MD
Default time formath:mm:ss.tt
Time format separator:
AM symbolPD
PM symbolMD
All time formatsh:mm:ss.tt
HH:mm:ss
Date formatting
Default short date format2005-08-23
Default long date format2005-08-23
All short date formats2005-08-23
yyyy-MM-dd
yy-MM-dd
All long date formats2005-08-23
yyyy-MM-dd
Calendars
CalendarsGregorian(Localized)

Go BackSelect another LCID

Top of pageTop of page

About NLSWeb

How NLSWeb tool was written

NLSWeb originated as a reference tool for testers. When an application is tested to comply to local conventions (defined by user locale), may be handy to have a perfect sample. The etalon can be found by reading the NLS settings from the operating system NLS API. But the most complete information is available under Windows 2000 only - while it may be required when tests are running on Windows 95/98 or Windows Me.

The solution was found: collect the information on a Windows 2000 server and display it to everybody interested through a Web page. No data is collected on the client: perfect NLS information is not related on the platform where the test is run. On the server side, on the other hand, a lot of work has to be done. An ASP page was written.

The information about NLS support is collected at run time, showing the most current status of NLS data on the server. Win32 NLS API is broader then NLS support of VBScript or JavaScript; to get access to those functions, the ASP calls a server-side ATL control. This control calls NLS API when an application is started on the server. When the server running NLSWeb is updated with OS having broader language support the users get the updated information automatically.

NLS data fits well into tree structure of XML; this format leaves room for future expansion if NLS API grows; it is easily built and formatted. The drawback of XML format - it is not supported by all browsers, and those supporting it may be limited in formatting capabilities. That's why NLSWeb receives XML data from the ATL control, formats it using XSL filters, and sends HTML data to the client.

Normally, language-specific information is required for one language at a time; ATL control running on our page collects information for all languages. To keep the user from drawning in all that data, while providing an easy way to access any language information, the ASP used two XSL filters. First - the default one - formats the start page, showing a list of locales that server supports. The second, single-language filter , formats a language-specific page; it receives a single - language subset of the XML data that ATL.

The data sent is multi-lingual and encoded in UTF-8. Certain problems may show up when multi-lingual data is displayed on non-multilingual platforms. To resolve some of those problems, a Unicode font was created from Sylfaen font supplied with Microsoft Windows 2000. This font is embedded into the output HTML, so that you see less "default glyphs" (result of system's failure to find a symbol to display text) in the output. However, this solution works only with Microsoft Internet Explorer 4.0 or better. For more information on this technique and for the tool that generates Web fonts, check the link: http://www.microsoft.com/typography/web/default.htm .


Top of pageTop of page