I stumbled across an interesting question about localization/globalization recently. The user wanted to print currency symbols using the ISO standards and wanted to find out if there was an easy way to do so using ASP.NET
Yes, there is! Use the RegionInfo.ISOCurrencySymbol Property. Here’s how
C#
string symbol = RegionInfo.CurrentRegion.ISOCurrencySymbol;
Response.Write(symbol);
VB.NET
Dim symbol As String = RegionInfo.CurrentRegion.ISOCurrencySymbol
Response.Write(symbol)
The output on my system is USD, which is according to the ISO 4217 standards
Tweet
2 comments:
I absolutely adore reading your blog posts, the variety of writing is smashing.This blog as usual was educational, I have had to bookmark your site and subscribe to your feed in ifeed. Your theme looks lovely.Thanks for sharing.
iso 9000
Post a Comment