all groups > dotnet internationalization > april 2008 >
You're in the

dotnet internationalization

group:

RegionInfo for Bosnia, Malta, Nepal


RegionInfo for Bosnia, Malta, Nepal robinbittner
4/20/2008 7:19:45 AM
dotnet internationalization:
Hi,
I am having problems with RegionInfo for mentined countries. In fact,
there are even more problematic countries, these are just an example.
I try this code:
RegionInfo r1 = new RegionInfo("ba");
RegionInfo r2 = new RegionInfo("mt");
RegionInfo r3 = new RegionInfo("np");

Does anybody know the reason, why I receive the error "Region name xxx
is not supported" ?
Do I need some patch for NET Framework?

My environment: WinXP SP2, NET 3.5 installed.

Re: RegionInfo for Bosnia, Malta, Nepal Michael S. Kaplan [MSFT]
4/20/2008 10:33:28 PM
These regions are not supported on OS you are on or on .NET, sorry.

You can try Vista instead to get them via the OS (though try to use full
culture names instead of just the region or it will still fail), or you can
build custom cultures (same restriction).

--

MichKa [Microsoft]
Windows International
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.


[quoted text, click to view]

Re: RegionInfo for Bosnia, Malta, Nepal robinbittner
4/21/2008 11:17:23 PM
Hi Michael,
thanks for explanation. In this case, the custom culture will be the
solution for me,
AddThis Social Bookmark Button