473,785 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Numeric Country Code

Hi all,

I know how to use System.Globaliz ation.RegionInf o, but I have problems
to get the Numeric Country Code like this here:

http://www.atmajaya.ac.id/Weblinks/KodeNegara.html

ISO-3166.

Do somebody know how to get them in C#.

Thx
Susan

Nov 16 '05 #1
4 9489
MSDN documentation states that, "The culture names follow the RFC 1766
standard in the format "<languagecode2 >-<country/regioncode2>", where
<languagecode 2> is a lowercase two-letter code derived from ISO 639-1 and
<country/regioncode2> is an uppercase two-letter code derived from ISO
3166."
So use it :)

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Susanne Christe" <at**@gmx.net > wrote in message
news:40******** @news.pironet-ndh.com...
Hi all,

I know how to use System.Globaliz ation.RegionInf o, but I have problems
to get the Numeric Country Code like this here:

http://www.atmajaya.ac.id/Weblinks/KodeNegara.html

ISO-3166.

Do somebody know how to get them in C#.

Thx
Susan

Nov 16 '05 #2
Tamir Khason wrote:
MSDN documentation states that, "The culture names follow the RFC 1766
standard in the format "<languagecode2 >-<country/regioncode2>", where
<languagecode 2> is a lowercase two-letter code derived from ISO 639-1 and
<country/regioncode2> is an uppercase two-letter code derived from ISO
3166."
So use it :)


The Problem ist, the numeric Country Code must be somewhere in the
system too. If You are editing a user in ActiveDirectory , the numeric
country code is afterwards as countryCode: 840 for US in the Directory.
Where are those numbers comming from.

All this infos about country code is in letter mode, i need the numeric
attribute of a country from the system. And definitefly it is somwhere
where no one was before ;) except of MS ;)

thx
Susan

Nov 16 '05 #3
I think that the fastest way for you will be make table of convertion for
letter and numeric attributes,
sorry for this... :)

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Susanne Christe" <at**@gmx.net > wrote in message
news:40******@n ews.pironet-ndh.com...
Tamir Khason wrote:
MSDN documentation states that, "The culture names follow the RFC 1766
standard in the format "<languagecode2 >-<country/regioncode2>", where
<languagecode 2> is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO
3166."
So use it :)


The Problem ist, the numeric Country Code must be somewhere in the
system too. If You are editing a user in ActiveDirectory , the numeric
country code is afterwards as countryCode: 840 for US in the Directory.
Where are those numbers comming from.

All this infos about country code is in letter mode, i need the numeric
attribute of a country from the system. And definitefly it is somwhere
where no one was before ;) except of MS ;)

thx
Susan

Nov 16 '05 #4
Tamir Khason wrote:
I think that the fastest way for you will be make table of convertion for
letter and numeric attributes,
sorry for this... :)

Hi Tamir, you dont need to be sorry for this.

But I am asking me, do we need to invent the wheel all the time new, if
the solution must lie hidden in the system. All the people editing
ActiveDirectory with apps, do they make every time this iso tables new?
This dont make any sense, and still worse, I dont find ANY clue on the
net, and people are fighting with this every day, and working around and
around and around ;)

Thank You very much and have a nice day. :)

thx
susan

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
8455
by: abracad | last post by:
Hi Is there any (preferably free) PHP script that will identify the country of a visitor, thus allowing one page to be delivered to those from A, B and C, and another to those from X, Y and Z? Thanks
0
1420
by: Travis Oliphant | last post by:
Numarray is making great progress and is quite usable for many purposes. An idea that was championed by some is that the Numeric code base would stay static and be replaced entirely by Numarray. However, Numeric is currently used in a large installed base. In particular SciPy uses Numeric as its core array. While no doubt numarray arrays will be supported in the future, the speed of the less bulky Numeric arrays and the typical case...
2
4062
by: Laz | last post by:
Hi, I've not worked with javascript, and after searching could not find example of this type of manipulation. I'm trying to set a variable to the last portion of a domain name. for example, if the URL is http://www.telefonica.es/index.php, I'd like to get the "es" code into a variable. Is there a predefined call for this?
2
3558
by: Zyron | last post by:
Hello! I'm developing a web page that has a goal of providing personal content, which means that all information should be written in their own language. I'm about to finish my Geo targeting system that will identify where the users are coming from based on their IP address, and for this project I would really like to replace the English country list with a list of the country in the local language. I'm been around on
9
2063
by: Dave Brydon | last post by:
Access 2003: I currently apply my Postal/Zip Code Format based off the Country Selected; the way I do it is by checking on the country; using the forms "On Current" event procedure, then I use additional code on my Postal/Zip Code field, using the fields "On Got Focus" event (Code Below) to manipulate the input mask. This procedure works well; however, I now wish to have a longer Value List of countries instead of using "Other", but I...
54
6299
by: Victor Mehta | last post by:
would it matter if I decided to make a primary key a string of numbers vs actual numbers ? would it make any difference to DB2 in terms of efficiency ? why would you choose numeric over a string for a key that does not need to be in numeric format ? thanks -- reply to newsgroupsurferATyahooDOTcom
7
1923
by: Lloyd Dupont | last post by:
from the IP of the request ?
1
5483
by: suresh_nsnguys | last post by:
Respected sir/madam, In My Application, users can send me an email with some keyword 'XXXX' to our mail server 'XXXX@xxxxx.com'.i am using imap_open() and other imap functions to read that email and auto respond the email. My Issue is, i am receiving some email with country code as email id(say <country code><phonenumber>@<carrier.com> and some without country code as email id <numberphonenumber>@<carrier.com> Is...
5
3939
by: bennever | last post by:
Hi, I plan to use drop down lists to populate team results and will use the standard country/state drop down lists as the base code. The question: how can I populate multiple (5) states from entering one country? Here is the current code which works for one state...however if I add another "State" (class=td100) row identical to the one below neither state field offers the drop down list. <form name="form1" action=""> <table...
0
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.