Home All Groups Group Topic Archive Search About

RegionInfo.ThreeLetterISORegionName returns TwoLetterIsoCode for B

Author
16 Dec 2005 1:36 PM
DPOMT
Hi all,

I need to get the ISO-3166 code for BOSNIA AND HERZEGOVINA.
What I am trying is

1) RegionInfo ri = new RegionInfo(5146); ==> works fine and gets RegionInfo
2) ri.ThreeLetterISORegionName ==> Output "BA". Expected "BIH".

But I only get "BA" - not "BIH".

Any help greatly appreciated

I have noticed that BA/BIH is not listed in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationregioninfoclasstopic.asp
Might this be the problem?

I have also read about synthetic cultures
http://blogs.msdn.com/shawnste/archive/2005/12/06/500675.aspx

But anyway, BIH is a valid code found in ISO-3166.
Any ideas how to get it via RegionInfo?

Thanks,
DPOMT

AddThis Social Bookmark Button