English


English


Knowledge base

Localization of dates, numbers, and strings using LCID


KB-LJW-ASP-202



  







What is the LCID in ASP?




Where and how to specify the LCID ?

ASP CLASSIC
<%
'Apply LCID 1036 (French)
SetLocale(1036)

'If the LCID matches:
if (GetLocale() = 1036) then
   Response.Write "Valid LCID"
'If the LCID is different:
else
   Response.Write "LCID used as a replacement : " & GetLocale()
end if
%>


ASP CLASSIC
<%
'-------------------------
'Assign an invalid LCID (via "SetLocale")
SetLocale(98765)

'The following error is raised:
'   0x800A01BF
'   Object doesn't support current locale setting: 'SetLocale'


'-------------------------
'Assign an invalid LCID (via "Session")
Session.LCID = 98765

'The following error is raised:
'   0x80004005 (ASP 0219)
'   SessionID
'   The specified LCID is not available.


'-------------------------
'Assign an invalid LCID (via "Response")
Response.LCID = 98765

'The following error is raised:
'   0x80004005 (ASP 0219)
'   Response object
'   The specified LCID is not available.
%>





Scope of the LCID

 Click to sort columns
Declaration modeScopePersistenceRecommended usage
IIS > ASP > LCID1. ApplicationPermanentDefault value
Session.LCID2. SessionMultiple requestsUser culture
SetLocale()3. ThreadRequestTemporary adjustment
Response.LCID4. ResponseRequestSpecific output


Default LCID in IIS > ASP



Definition via SetLocale()



Definition in Session.LCID



Definition in Response.LCID




Impacts of LCID in Classic ASP



Impacts of LCID on dates


Impacted functions


Tips & Best Practices



Impacts of LCID on numbers


Impacted functions


Tips & Best Practices



Impacts of LCID on character strings


Impacted functions


Tips & Best Practices




Incorrect historical lists of LCID




Complete list of LCIDs that can be used in Classic ASP


 Click to sort columns
LCID
Hexa
LCID
Decimal
Tag Locale
IETF BCP 47
Tags Locale
(historical)
LanguageRegion
0x04011025ar-SAArabicSaudi Arabia
0x04021026bg-BGBulgarianBulgaria
0x04031027ca-ESCatalanSpain
0x04041028zh-TWzh-CHTChinese (Traditional)Taiwan
0x04051029cs-CZCzechCzech Republic
0x04061030da-DKDanishDenmark
0x04071031de-DEGermanGermany
0x04081032el-GRGreekGreece
0x04091033en-USEnglishUnited States
0x040A1034es-ESSpanishSpain
0x040B1035fi-FIFinnishFinland
0x040C1036fr-FRFrenchFrance
0x040D1037he-ILiw-ILHebrewIsrael
0x040E1038hu-HUHungarianHungary
0x040F1039is-ISIcelandicIceland
0x04101040it-ITItalianItaly
0x04111041ja-JPJapaneseJapan
0x04121042ko-KRKoreanKorea
0x04131043nl-NLDutchNetherlands
0x04141044nb-NOno-BOKNorwegian (Bokmal)Norway
0x04151045pl-PLPolishPoland
0x04161046pt-BRPortugueseBrazil
0x04171047rm-CHRomanshSwitzerland
0x04181048ro-RORomanianRomania
0x04191049ru-RURussianRussia
0x041A1050hr-HRCroatianCroatia
0x041B1051sk-SKSlovakSlovakia
0x041C1052sq-ALAlbanianAlbania
0x041D1053sv-SESwedishSweden
0x041E1054th-THThaiThailand
0x041F1055tr-TRTurkishTurkey
0x04201056ur-PKUrduIslamic Republic of Pakistan
0x04211057id-IDin-IDIndonesianIndonesia
0x04221058uk-UAUkrainianUkraine
0x04231059be-BYBelarusianBelarus
0x04241060sl-SISlovenianSlovenia
0x04251061et-EEEstonianEstonia
0x04261062lv-LVLatvianLatvia
0x04271063lt-LTLithuanianLithuania
0x04281064tg-Cyrl-TJTajik (Cyrillic)Tajikistan
0x04291065fa-IRPersianIran
0x042A1066vi-VNVietnameseVietnam
0x042B1067hy-AMArmenianArmenia
0x042C1068az-Latn-AZAzerbaijani (Latin)Azerbaijan
0x042D1069eu-ESBasqueSpain
0x042E1070hsb-DEwen-DEUpper SorbianGermany
0x042F1071mk-MKMacedonianNorth Macedonia
0x04301072st-ZASothoSouth Africa
0x04311073ts-ZATsongaSouth Africa
0x04321074tn-ZASetswanaSouth Africa
0x04331075ve-ZAVendaSouth Africa
0x04341076xh-ZAXhosaSouth Africa
0x04351077zu-ZAZuluSouth Africa
0x04361078af-ZAAfrikaansSouth Africa
0x04371079ka-GEGeorgianGeorgia
0x04381080fo-FOFaroeseFaroe Islands
0x04391081hi-INHindiIndia
0x043A1082mt-MTMalteseMalta
0x043B1083se-NOSami (Northern)Norway
0x043D1085yi-001ji-001YiddishWorld
0x043E1086ms-MYMalayMalaysia
0x043F1087kk-KZKazakhKazakhstan
0x04401088ky-KGKyrgyzKyrgyzstan
0x04411089sw-KEKiswahiliKenya
0x04421090tk-TMTurkmenTurkmenistan
0x04431091uz-Latn-UZUzbek (Latin)Uzbekistan
0x04441092tt-RUTatarRussia
0x04451093bn-INBanglaIndia
0x04461094pa-INPunjabiIndia
0x04471095gu-INGujaratiIndia
0x04481096or-INOdiaIndia
0x04491097ta-INTamilIndia
0x044A1098te-INTeluguIndia
0x044B1099kn-INKannadaIndia
0x044C1100ml-INMalayalamIndia
0x044D1101as-INAssameseIndia
0x044E1102mr-INMarathiIndia
0x044F1103sa-INSanskritIndia
0x04501104mn-MNMongolian (Cyrillic)Mongolia
0x04511105bo-CNTibetanPeople's Republic of China
0x04521106cy-GBWelshUnited Kingdom
0x04531107km-KHKhmerCambodia
0x04541108lo-LALaoLao P.D.R.
0x04551109my-MMBurmeseMyanmar
0x04561110gl-ESGalicianSpain
0x04571111kok-INKonkaniIndia
0x045A1114syr-SYSyriacSyria
0x045B1115si-LKSinhalaSri Lanka
0x045C1116chr-Cher-USCherokeeUnited States
0x045d1117iu-Cans-CAInuktitut (Syllabics)Canada
0x045E1118am-ETAmharicEthiopia
0x045F1119tzm-Arab-MACentral Atlas Tamazight (Arabic)Morocco
0x04601120ks-ArabKashmiriPerso-Arabic
0x04611121ne-NPNepaliNepal
0x04621122fy-NLFrisianNetherlands
0x04631123ps-AFPashtoAfghanistan
0x04641124fil-PHti-PHFilipinoPhilippines
0x04651125dv-MVDivehiMaldives
0x04671127ff-NGFulahNigeria
0x04671127ff-Latn-NGFulah (Latin)Nigeria
0x04681128ha-Latn-NGHausa (Latin)Nigeria
0x046A1130yo-NGYorubaNigeria
0x046B1131quz-BOQuechuaBolivia
0x046C1132nso-ZASesotho sa LeboaSouth Africa
0x046D1133ba-RUBashkirRussia
0x046E1134lb-LULuxembourgishLuxembourg
0x046F1135kl-GLGreenlandicGreenland
0x04701136ig-NGIgboNigeria
0x04711137kr-Latn-NGKanuri (Latin)Nigeria
0x04721138om-ETOromoEthiopia
0x04731139ti-ETTigrinyaEthiopia
0x04741140gn-PYGuaraniParaguay
0x04751141haw-USHawaiianUnited States
0x04761142la-VALatinVatican City
0x04771143so-SOSomaliSomalia
0x04781144ii-CNYiPeople's Republic of China
0x047A1146arn-CLMapudungunChile
0x047C1148moh-CAMohawkCanada
0x047E1150br-FRBretonFrance
0x04801152ug-CNUyghurPeople's Republic of China
0x04811153mi-NZMaoriNew Zealand
0x04821154oc-FROccitanFrance
0x04831155co-FRCorsicanFrance
0x04841156gsw-FRAlsatianFrance
0x04851157sah-RUSakhaRussia
0x04861158quc-Latn-GTK'icheGuatemala
0x04871159rw-RWKinyarwandaRwanda
0x04881160wo-SNWolofSenegal
0x048C1164prs-AFDariAfghanistan
0x04911169gd-GBScottish GaelicUnited Kingdom
0x04921170ku-Arab-IQCentral KurdishIraq
0x08012049ar-IQArabicIraq
0x08032051ca-ES-valenciaValencianSpain
0x08042052zh-CNzh-CHSChinese (Simplified)People's Republic of China
0x08072055de-CHGermanSwitzerland
0x08092057en-GBEnglishUnited Kingdom
0x080A2058es-MXSpanishMexico
0x080C2060fr-BEFrenchBelgium
0x08102064it-CHItalianSwitzerland
0x08132067nl-BEDutchBelgium
0x08142068nn-NOno-NYNNorwegian (Nynorsk)Norway
0x08162070pt-PTPortuguesePortugal
0x08182072ro-MDro-MORomanianMoldova
0x08192073ru-MDru-MORussianMoldova
0x081A2074sr-Latn-CSSerbian (Latin)Serbia and Montenegro (Former)
0x081D2077sv-FISwedishFinland
0x08202080ur-INUrduIndia
0x082C2092az-Cyrl-AZAzerbaijani (Cyrillic)Azerbaijan
0x082E2094dsb-DELower SorbianGermany
0x08322098tn-BWSetswanaBotswana
0x083B2107se-SESami (Northern)Sweden
0x083C2108ga-IEIrishIreland
0x083E2110ms-BNMalayBrunei Darussalam
0x08432115uz-Cyrl-UZUzbek (Cyrillic)Uzbekistan
0x08452117bn-BDBanglaBangladesh
0x08462118pa-Arab-PKPunjabiIslamic Republic of Pakistan
0x08492121ta-LKTamilSri Lanka
0x08502128mn-Mong-CNMongolian (Traditional Mongolian)People's Republic of China
0x08592137sd-Arab-PKSindhiIslamic Republic of Pakistan
0x085D2141iu-Latn-CAInuktitut (Latin)Canada
0x085F2143tzm-Latn-DZTamazight (Latin)Algeria
0x08602144ks-Deva-INKashmiri (Devanagari)India
0x08612145ne-INNepaliIndia
0x08672151ff-Latn-SNFulahSenegal
0x086B2155quz-ECQuechuaEcuador
0x08732163ti-ERTigrinyaEritrea
0x0c013073ar-EGArabicEgypt
0x0C043076zh-HKChinese (Traditional)Hong Kong S.A.R.
0x0C073079de-ATGermanAustria
0x0C093081en-AUEnglishAustralia
0x0c0A3082es-ESSpanishSpain
0x0c0C3084fr-CAFrenchCanada
0x0C1A3098sr-Cyrl-CSSerbian (Cyrillic)Serbia and Montenegro (Former)
0x0C3B3131se-FISami (Northern)Finland
0x0C503152mn-Mong-MNMongolian (Traditional Mongolian)Mongolia
0x0C513153dz-BTDzongkhaBhutan
0x0C6B3179quz-PEQuechuaPeru
0x10014097ar-LYArabicLibya
0x10044100zh-SGChinese (Simplified)Singapore
0x10074103de-LUGermanLuxembourg
0x10094105en-CAEnglishCanada
0x100A4106es-GTSpanishGuatemala
0x100C4108fr-CHFrenchSwitzerland
0x101A4122hr-BACroatian (Latin)Bosnia and Herzegovina
0x103B4155smj-NOSami (Lule)Norway
0x14015121ar-DZArabicAlgeria
0x14045124zh-MOChinese (Traditional)Macao S.A.R.
0x14075127de-LIGermanLiechtenstein
0x14095129en-NZEnglishNew Zealand
0x140A5130es-CRSpanishCosta Rica
0x140C5132fr-LUFrenchLuxembourg
0x141A5146bs-Latn-BABosnian (Latin)Bosnia and Herzegovina
0x143B5179smj-SESami (Lule)Sweden
0x18016145ar-MAArabicMorocco
0x18096153en-IEEnglishIreland
0x180A6154es-PASpanishPanama
0x180C6156fr-MCFrenchPrincipality of Monaco
0x181A6170sr-Latn-BASerbian (Latin)Bosnia and Herzegovina
0x183B6203sma-NOSami (Southern)Norway
0x1C017169ar-TNArabicTunisia
0x1C097177en-ZAEnglishSouth Africa
0x1c0A7178es-DOSpanishDominican Republic
0x1C0C7180fr-029FrenchCaribbean
0x1C1A7194sr-Cyrl-BASerbian (Cyrillic)Bosnia and Herzegovina
0x1C3B7227sma-SESami (Southern)Sweden
0x20018193ar-OMArabicOman
0x20098201en-JMEnglishJamaica
0x200A8202es-VESpanishBolivarian Republic of Venezuela
0x200C8204fr-REFrenchReunion
0x201A8218bs-Cyrl-BABosnian (Cyrillic)Bosnia and Herzegovina
0x203B8251sms-FISami (Skolt)Finland
0x24019217ar-YEArabicYemen
0x24099225en-029EnglishCaribbean
0x240A9226es-COSpanishColombia
0x240C9228fr-CDFrenchCongo DRC
0x241A9242sr-Latn-RSSerbian (Latin)Serbia
0x243B9275smn-FISami (Inari)Finland
0x280110241ar-SYArabicSyria
0x280910249en-BZEnglishBelize
0x280A10250es-PESpanishPeru
0x280C10252fr-SNFrenchSenegal
0x281A10266sr-Cyrl-RSSerbian (Cyrillic)Serbia
0x2C0111265ar-JOArabicJordan
0x2c0911273en-TTEnglishTrinidad and Tobago
0x2C0A11274es-ARSpanishArgentina
0x2c0C11276fr-CMFrenchCameroon
0x2c1A11290sr-Latn-MESerbian (Latin)Montenegro
0x300112289ar-LBArabicLebanon
0x300912297en-ZWEnglishZimbabwe
0x300A12298es-ECSpanishEcuador
0x300C12300fr-CIFrenchCôte d'Ivoire
0x301A12314sr-Cyrl-MESerbian (Cyrillic)Montenegro
0x340113313ar-KWArabicKuwait
0x340913321en-PHEnglishRepublic of the Philippines
0x340A13322es-CLSpanishChile
0x340C13324fr-MLFrenchMali
0x380114337ar-AEArabicU.A.E.
0x380A14346es-UYSpanishUruguay
0x380C14348fr-MAFrenchMorocco
0x3C0115361ar-BHArabicBahrain
0x3C0915369en-HKEnglishHong Kong S.A.R.
0x3C0A15370es-PYSpanishParaguay
0x3c0C15372fr-HTFrenchHaiti
0x400116385ar-QAArabicQatar
0x400916393en-INEnglishIndia
0x400A16394es-BOSpanishBolivia
0x440917417en-MYEnglishMalaysia
0x440A17418es-SVSpanishEl Salvador
0x480918441en-SGEnglishSingapore
0x480A18442es-HNSpanishHonduras
0x4C0919465en-AEEnglishUnited Arab Emirates
0x4C0A19466es-NISpanishNicaragua
0x500A20490es-PRSpanishPuerto Rico
0x540A21514es-USSpanishUnited States
0x580A22538es-419SpanishLatin America
0x5c0A23562es-CUSpanishCuba







At the service of your ASP Classic





Privacy preferencesYour privacy preferences

NOTE: Your changes will be applied from the next page you will visit/load.

Your privacy is precious: we respect it.

By using this website, you consent that we use technologies such as anonymous statistics and cookies to improve your browsing experience on our site, customise content, and analyse our traffic. This anonymous information may be shared with our trusted social media and analytics partners.

  • We do not collect any nominative data.
  • We do not store any password.
  • We use a high-end secure connection.