SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 26
  1. #1
    E-business guru Eirik's Avatar
    Join Date
    Nov 2000
    Location
    Oslo, Norway
    Posts
    413
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    List of countries

    Hi guys,

    Anyone know where I can get my hands on a complete list of all the countries in the world accompanied by their two-char unique codes.

    Thanks in advance !
    Sincerely,

    Eirik Johansen
    Netmaking AS

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yo I am not telling you this is the right way to do things, BUT, amazon, yahoo and any of the big sites, will have that list in theri signup form, simply view the source and copy and paste it.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Huge post coming up:

    PHP Code:
        $country_list = array (
                
    "AD" => "Andorra",
                
    "AE" => "United Arab Emirates",
                
    "AF" => "Afghanistan",
                
    "AG" => "Antigua and Barbuda",
                
    "AI" => "Anguilla",
                
    "AL" => "Albania",
                
    "AM" => "Armenia",
                
    "AN" => "Netherlands Antilles",
                
    "AO" => "Angola",
                
    "AQ" => "Antarctica",
                
    "AR" => "Argentina",
                
    "AS" => "American Samoa",
                
    "AT" => "Austria",
                
    "AU" => "Australia",
                
    "AW" => "Aruba",
                
    "AZ" => "Azerbaijan",
                
    "BA" => "Bosnia and Herzegovina",
                
    "BB" => "Barbados",
                
    "BD" => "Bangladesh",
                
    "BE" => "Belgium",
                
    "BF" => "Burkina Faso",
                
    "BG" => "Bulgaria",
                
    "BH" => "Bahrain",
                
    "BI" => "Burundi",
                
    "BJ" => "Benin",
                
    "BM" => "Bermuda",
                
    "BN" => "Brunei Darussalam",
                
    "BO" => "Bolivia",
                
    "BR" => "Brazil",
                
    "BS" => "Bahamas",
                
    "BT" => "Bhutan",
                
    "BV" => "Bouvet Island",
                
    "BW" => "Botswana",
                
    "BY" => "Belarus",
                
    "BZ" => "Belize",
                
    "CA" => "Canada",
                
    "CC" => "Cocos (Keeling) Islands",
                
    "CF" => "Central African Republic",
                
    "CG" => "Congo",
                
    "CH" => "Switzerland",
                
    "CI" => "Cote D'Ivoire (Ivory Coast)",
                
    "CK" => "Cook Islands",
                
    "CL" => "Chile",
                
    "CM" => "Cameroon",
                
    "CN" => "China",
                
    "CO" => "Colombia",
                
    "CR" => "Costa Rica",
                
    "CS" => "Czechoslovakia (former)",
                
    "CU" => "Cuba",
                
    "CV" => "Cape Verde",
                
    "CX" => "Christmas Island",
                
    "CY" => "Cyprus",
                
    "CZ" => "Czech Republic",
                
    "DE" => "Germany",
                
    "DJ" => "Djibouti",
                
    "DK" => "Denmark",
                
    "DM" => "Dominica",
                
    "DO" => "Dominican Republic",
                
    "DZ" => "Algeria",
                
    "EC" => "Ecuador",
                
    "EE" => "Estonia",
                
    "EG" => "Egypt",
                
    "EH" => "Western Sahara",
                
    "ER" => "Eritrea",
                
    "ES" => "Spain",
                
    "ET" => "Ethiopia",
                
    "FI" => "Finland",
                
    "FJ" => "Fiji",
                
    "FK" => "Falkland Islands (Malvinas)",
                
    "FM" => "Micronesia",
                
    "FO" => "Faroe Islands",
                
    "FR" => "France",
                
    "FX" => "France, Metropolitan",
                
    "GA" => "Gabon",
                
    "GB" => "Great Britain (UK)",
                
    "GD" => "Grenada",
                
    "GE" => "Georgia",
                
    "GF" => "French Guiana",
                
    "GH" => "Ghana",
                
    "GI" => "Gibraltar",
                
    "GL" => "Greenland",
                
    "GM" => "Gambia",
                
    "GN" => "Guinea",
                
    "GP" => "Guadeloupe",
                
    "GQ" => "Equatorial Guinea",
                
    "GR" => "Greece",
                
    "GS" => "S. Georgia and S. Sandwich Isls.",
                
    "GT" => "Guatemala",
                
    "GU" => "Guam",
                
    "GW" => "Guinea-Bissau",
                
    "GY" => "Guyana",
                
    "HK" => "Hong Kong",
                
    "HM" => "Heard and McDonald Islands",
                
    "HN" => "Honduras",
                
    "HR" => "Croatia (Hrvatska)",
                
    "HT" => "Haiti",
                
    "HU" => "Hungary",
                
    "ID" => "Indonesia",
                
    "IE" => "Ireland",
                
    "IL" => "Israel",
                
    "IN" => "India",
                
    "IO" => "British Indian Ocean Territory",
                
    "IQ" => "Iraq",
                
    "IR" => "Iran",
                
    "IS" => "Iceland",
                
    "IT" => "Italy",
                
    "JM" => "Jamaica",
                
    "JO" => "Jordan",
                
    "JP" => "Japan",
                
    "KE" => "Kenya",
                
    "KG" => "Kyrgyzstan",
                
    "KH" => "Cambodia",
                
    "KI" => "Kiribati",
                
    "KM" => "Comoros",
                
    "KN" => "Saint Kitts and Nevis",
                
    "KP" => "Korea (North)",
                
    "KR" => "Korea (South)",
                
    "KW" => "Kuwait",
                
    "KY" => "Cayman Islands",
                
    "KZ" => "Kazakhstan",
                
    "LA" => "Laos",
                
    "LB" => "Lebanon",
                
    "LC" => "Saint Lucia",
                
    "LI" => "Liechtenstein",
                
    "LK" => "Sri Lanka",
                
    "LR" => "Liberia",
                
    "LS" => "Lesotho",
                
    "LT" => "Lithuania",
                
    "LU" => "Luxembourg",
                
    "LV" => "Latvia",
                
    "LY" => "Libya",
                
    "MA" => "Morocco",
                
    "MC" => "Monaco",
                
    "MD" => "Moldova",
                
    "MG" => "Madagascar",
                
    "MH" => "Marshall Islands",
                
    "MK" => "Macedonia",
                
    "ML" => "Mali",
                
    "MM" => "Myanmar",
                
    "MN" => "Mongolia",
                
    "MO" => "Macau",
                
    "MP" => "Northern Mariana Islands",
                
    "MQ" => "Martinique",
                
    "MR" => "Mauritania",
                
    "MS" => "Montserrat",
                
    "MT" => "Malta",
                
    "MU" => "Mauritius",
                
    "MV" => "Maldives",
                
    "MW" => "Malawi",
                
    "MX" => "Mexico",
                
    "MY" => "Malaysia",
                
    "MZ" => "Mozambique",
                
    "NA" => "Namibia",
                
    "NC" => "New Caledonia",
                
    "NE" => "Niger",
                
    "NF" => "Norfolk Island",
                
    "NG" => "Nigeria",
                
    "NI" => "Nicaragua",
                
    "NL" => "Netherlands",
                
    "NO" => "Norway",
                
    "NP" => "Nepal",
                
    "NR" => "Nauru",
                
    "NT" => "Neutral Zone",
                
    "NU" => "Niue",
                
    "NZ" => "New Zealand (Aotearoa)",
                
    "OM" => "Oman",
                
    "PA" => "Panama",
                
    "PE" => "Peru",
                
    "PF" => "French Polynesia",
                
    "PG" => "Papua New Guinea",
                
    "PH" => "Philippines",
                
    "PK" => "Pakistan",
                
    "PL" => "Poland",
                
    "PM" => "St. Pierre and Miquelon",
                
    "PN" => "Pitcairn",
                
    "PR" => "Puerto Rico",
                
    "PT" => "Portugal",
                
    "PW" => "Palau",
                
    "PY" => "Paraguay",
                
    "QA" => "Qatar",
                
    "RE" => "Reunion",
                
    "RO" => "Romania",
                
    "RU" => "Russian Federation",
                
    "RW" => "Rwanda",
                
    "SA" => "Saudi Arabia",
                
    "Sb" => "Solomon Islands",
                
    "SC" => "Seychelles",
                
    "SD" => "Sudan",
                
    "SE" => "Sweden",
                
    "SG" => "Singapore",
                
    "SH" => "St. Helena",
                
    "SI" => "Slovenia",
                
    "SJ" => "Svalbard and Jan Mayen Islands",
                
    "SK" => "Slovak Republic",
                
    "SL" => "Sierra Leone",
                
    "SM" => "San Marino",
                
    "SN" => "Senegal",
                
    "SO" => "Somalia",
                
    "SR" => "Suriname",
                
    "ST" => "Sao Tome and Principe",
                
    "SU" => "USSR (former)",
                
    "SV" => "El Salvador",
                
    "SY" => "Syria",
                
    "SZ" => "Swaziland",
                
    "TC" => "Turks and Caicos Islands",
                
    "TD" => "Chad",
                
    "TF" => "French Southern Territories",
                
    "TG" => "Togo",
                
    "TH" => "Thailand",
                
    "TJ" => "Tajikistan",
                
    "TK" => "Tokelau",
                
    "TM" => "Turkmenistan",
                
    "TN" => "Tunisia",
                
    "TO" => "Tonga",
                
    "TP" => "East Timor",
                
    "TR" => "Turkey",
                
    "TT" => "Trinidad and Tobago",
                
    "TV" => "Tuvalu",
                
    "TW" => "Taiwan",
                
    "TZ" => "Tanzania",
                
    "UA" => "Ukraine",
                
    "UG" => "Uganda",
                
    "UK" => "United Kingdom",
                
    "UM" => "US Minor Outlying Islands",
                
    "US" => "United States",
                
    "UY" => "Uruguay",
                
    "UZ" => "Uzbekistan",
                
    "VA" => "Vatican City State (Holy See)",
                
    "VC" => "Saint Vincent and the Grenadines",
                
    "VE" => "Venezuela",
                
    "VG" => "Virgin Islands (British)",
                
    "VI" => "Virgin Islands (U.S.)",
                
    "VN" => "Viet Nam",
                
    "VU" => "Vanuatu",
                
    "WF" => "Wallis and Futuna Islands",
                
    "WS" => "Samoa",
                
    "YE" => "Yemen",
                
    "YT" => "Mayotte",
                
    "YU" => "Yugoslavia",
                
    "ZA" => "South Africa",
                
    "ZM" => "Zambia",
                
    "ZR" => "Zaire",
                
    "ZW" => "Zimbabwe"
            
    ); 
    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  4. #4
    E-business guru Eirik's Avatar
    Join Date
    Nov 2000
    Location
    Oslo, Norway
    Posts
    413
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a million Sean! Exactly what I was looking for!
    Sincerely,

    Eirik Johansen
    Netmaking AS

  5. #5
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! Just what I need as well, do you also have one for language code?
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  6. #6
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Those are wierd, there's a UK and a GB, but nothing for England, Scotland, Wales and Northern Ireland. Assuming Ireland means Republic of Ireland. I think GB is the UK plus Northern Ireland so they are different, but still odd.

  7. #7
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    England, Scotland, Wales and Northen Ireland are the UK

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  8. #8
    SitePoint Addict AbelaJohnB's Avatar
    Join Date
    Oct 2001
    Location
    Eureka, CA. USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a full list of:

    USA States
    World Countries
    European Countries
    Spanish Countries


    They are in a <select> format, and located at:
    http://www.4cm.com/tools/full_country_state_list.html

    Just do a 'view source' to get the list

    I also have the USA States in a MySQL Schema format at:
    http://4cm.com/scripts/listing.4cm?Category_ID=5


    Been hoping someone would write up the others into a Schema and send them to me, to put up at my site, but nobody has... Oh'well, maybe durning the holidays I'll get a few hours to convert them over to a Schema format.



    Anyway, have a great weekend.
    John B. Abela
    www.JohnAbela.Com

  9. #9
    Probably eating pie mitsubishi's Avatar
    Join Date
    Sep 2001
    Location
    England, UK
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by seanf
    England, Scotland, Wales and Northen Ireland are the UK

    Sean
    Yeah my point is that they are seperate countries as well, and your're right NI is in the UK, I wrote them the wrong way around. GB is an island, not a country, as is Ireland. The Channel Islands (and others) arn't even in the UK (but in the British Isles), but are a dependant territory. It's not surprising the w3c (they make the list?) get muddled it's a bizzare set-up. I don't know the difference between a dependancy and a dependant territory (like Gibraltar or The Falklands). So in summary if you live in England, Scotland or Wales you can be GB or UK, if you live in NI you can be Ireland or UK, ROI can only choose Ireland and if you live on the Isle of Mann then you're not listed. I suppose the same goes for Cyprus? If you live in Northern Cyprus then you could choose Turkey? It would easier if we all lived in one big world-wide country.

  10. #10
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    So anyone knows of a table for language code? Thanks
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  11. #11
    SitePoint Addict AbelaJohnB's Avatar
    Join Date
    Oct 2001
    Location
    Eureka, CA. USA
    Posts
    250
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Son Nguyen
    Hi,

    So anyone knows of a table for language code? Thanks




    Considering there are 6800 known languages spoken in the 191 countries of the world, and fewer than 1,000 have writing systems (the others are only spoken language!) I typically considering the following 37 to be the primary lanagues.




    Code:
    <SELECT name="Language">
    		<OPTION value="" selected>LANGUAGES</OPTION>
    		<OPTION value="">All Languages</OPTION>
    		<OPTION value=01>Arabic</OPTION>
    		<OPTION value=02>Bengali</OPTION>
    		<OPTION value=03>Chinese</OPTION>
    		<OPTION value=04>Croatian</OPTION>
    		<OPTION value=05>Czech</OPTION>
    		<OPTION value=06>Danish</OPTION>
    		<OPTION value=07>Dutch</OPTION>
    		<OPTION value=08>English</OPTION>
    		<OPTION value=09>Farsi (Persian)</OPTION>
    		<OPTION value=10>Finnish</OPTION>
    		<OPTION value=11>French</OPTION>
    		<OPTION value=12>German</OPTION>
    		<OPTION value=13>Greek (Modern)</OPTION>
    		<OPTION value=14>Gujarati</OPTION>
    		<OPTION value=15>Hebrew</OPTION>
    		<OPTION value=16>Hindi</OPTION>
    		<OPTION value=17>Hungarian</OPTION>
    		<OPTION value=18>Indonesian</OPTION>
    		<OPTION value=19>Italian</OPTION>
    		<OPTION value=20>Japanese</OPTION>
    		<OPTION value=21>Korean</OPTION>
    		<OPTION value=22>Latin</OPTION>
    		<OPTION value=23>Malayalam</OPTION>
    		<OPTION value=24>Marathi</OPTION>
    		<OPTION value=25>Norwegian</OPTION>
    		<OPTION value=26>Persian (Farsi)</OPTION>
    		<OPTION value=27>Polish</OPTION>
    		<OPTION value=28>Portuguese</OPTION>
    		<OPTION value=29>Punjabi</OPTION>
    		<OPTION value=30>Russian</OPTION>
    		<OPTION value=31>Serbian</OPTION>
    		<OPTION value=32>Spanish</OPTION>
    		<OPTION value=33>Swedish</OPTION>
    		<OPTION value=34>Tamil</OPTION>
    		<OPTION value=35>Telugu</OPTION>
    		<OPTION value=36>Thai</OPTION>
    		<OPTION value=37>Vietnamese</OPTION>
    </SELECT>

    If you feel that you just have to add more, use the list at: http://www.ethnologue.com/language_index.asp to take your list up-to 6,800 languages... but it seems a waste of time to me.... the above are the primary languages

    Later
    John B. Abela
    www.JohnAbela.Com

  12. #12
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh sorry, I mean just the languages that are accepted by the browsers (like in user-agent)
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  13. #13
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a million! These will come in handy!
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net

  14. #14
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a bit of reference:

    http://www.sitepointforums.com/showt...threadid=44413

    There are also country codes with their two letter abbreviations at the links on this page.

    As for languages supported, in ASP or PHP you should be able to find them very easily.

    Good luck with it.

    Edit: Argh! I just realized that I, the ASPer, posted in the PHP forums!
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  15. #15
    PHP Programmer QReyes's Avatar
    Join Date
    Oct 2001
    Location
    Philippines
    Posts
    698
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by cybercodeur
    Thanks a million! These will come in handy!
    You're welcome?
    The Star Circle Quest Community - Community website for SCQ fans.
    Telebisyon.net - Reference guide to TV series shown in the Philippines.
    Lyrics Server Online! - All the lyrics you can get on one website.

  16. #16
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He was thanking me

    No way out now your here goober!

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  17. #17
    PHP Programmer QReyes's Avatar
    Join Date
    Oct 2001
    Location
    Philippines
    Posts
    698
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry. I thought it was the same thing from the link I give from the other post.
    The Star Circle Quest Community - Community website for SCQ fans.
    Telebisyon.net - Reference guide to TV series shown in the Philippines.
    Lyrics Server Online! - All the lyrics you can get on one website.

  18. #18
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually I'm very polite. My mama taught me good. I'll thank everyone who needs to be thanked. And I'll do it for free too
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net

  19. #19
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by friend_al_23
    Sorry. I thought it was the same thing from the link I give from the other post.
    Al, I believe I did use your link. Sorry, it seemed like a good idea to share the knowledge.
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  20. #20
    PHP Programmer QReyes's Avatar
    Join Date
    Oct 2001
    Location
    Philippines
    Posts
    698
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by cybercodeur
    Actually I'm very polite. My mama taught me good. I'll thank everyone who needs to be thanked. And I'll do it for free too
    Why, that's mighty polite of you!
    The Star Circle Quest Community - Community website for SCQ fans.
    Telebisyon.net - Reference guide to TV series shown in the Philippines.
    Lyrics Server Online! - All the lyrics you can get on one website.

  21. #21
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not a problem. Wanna thank you Mr. friend_al_23?
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net

  22. #22
    PHP Programmer QReyes's Avatar
    Join Date
    Oct 2001
    Location
    Philippines
    Posts
    698
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome?
    The Star Circle Quest Community - Community website for SCQ fans.
    Telebisyon.net - Reference guide to TV series shown in the Philippines.
    Lyrics Server Online! - All the lyrics you can get on one website.

  23. #23
    Almeaty Member
    Join Date
    Jul 2000
    Location
    Nowhere
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    seanf, that list can't be complete. GERMANY isn't there!

  24. #24
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you'll find it is

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  25. #25
    Almeaty Member
    Join Date
    Jul 2000
    Location
    Nowhere
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by seanf
    I think you'll find it is

    Sean
    oh oh sorry hehe


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •