Questions tagged [country-codes]

ISO-3166 standard defining 2 and 3 character identifiers for each country in the world.

326 questions
0
votes
1 answer

Getting Countries and telephone codes

I thing this is really common problem when developing an app. The problem is to get country list with telephone numbers. So I need to get for example: +380 Ukraine +1 USA ... Diving deeper into this, as application will be localized for the App…
Nikita Zernov
  • 5,465
  • 6
  • 39
  • 70
0
votes
1 answer

How to get country code (not ISO code) in Qt

I'm developing an application for Windows. I find a way to get country code like 1(USA) and 82(South Korea).
Storm
  • 21
  • 1
  • 3
0
votes
1 answer

iTunes Connect API: Mapping Country to Territory to get Timezone

I am using the iTunes Connect API, as defined here: http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf My issue is with: "Appendix D - Definition of Day and Week", sub-section: "What time zone is the report date based on?" This…
jeff00seattle
  • 1,291
  • 5
  • 17
  • 31
0
votes
1 answer

Where is an official code for the European Union defined?

There is no code for the European Union in ISO 3166 or UN.M49. CLDR states that its own list does not contain a code for the European Union. I've seen the code "EU" used, but I can't find any official list that contains it. Is it in any official…
Scott Deerwester
  • 3,503
  • 4
  • 33
  • 56
0
votes
3 answers

Rails 4 - Country Select & Simple Form

I am trying to make an app in Rails 4. I use simple form for forms and country_select gem for country lists. I have an address model, which includes this method: def country_name self.country = ISO3166::Country[country] …
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

country code to numerical value in PostgreSQL

I would like to convert a list of country codes into numerical values to use in regression analysis. For examples all country codes that say "US" get 1, "DE" get 2, "FR" get 3 etc. without using 'distinct'. I tried the cast…
Naj
  • 37
  • 2
  • 10
0
votes
1 answer

How to access or get ISO3 Country code based on country entered by user in Android

I need to access the ISO3 Country code based on the country entered by the user for my android application. Is there any possible way to access it directly rather than storing it in an array.
Ninja
  • 17
  • 1
  • 7
0
votes
3 answers

Most accurate way to automatically get user's country on iOS?

This question is perhaps as much about human behaviour as programming. What is the best way of automatically getting the user's country (without asking the user) It's for a shopping app, so that the correct shopfront gets shown in the app. Imagine,…
cannyboy
  • 24,180
  • 40
  • 146
  • 252
0
votes
1 answer

Rails: Phone numbers - international prefix

I am using countries gem and country-select gem. I have an attribute in my phones table called :country_code. I ask users in the new phone form to pick their country: <%= f.input :country_code, label: false, wrapper: :vertical_input_group do %> …
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

Read user country on Windows Phone 8.1

How I can read the user country code on windows phone. I need to know his country not the language of the phone. For example if the user is from Austria or from Germany the language of the phone usually is German, but I need a way to rad this…
0
votes
1 answer

WP 8.1 : Get county name by Region Two letter code or country numeric code

(I appoligize by advance for my bad English :) ) I'm actually working on a Windows Phone store application (wp8.1), and I need to display a selector with country name (and few other informations). I am using libphonenumber library to get country…
0
votes
2 answers

What country codes are these?

i have some existing code, and i wonder what kind of country codes they are? Are the somehow mappable to codes somewhere in the .NET framework?
Michel
  • 23,085
  • 46
  • 152
  • 242
0
votes
1 answer

Change ISO ALPHA-2 Country Codes to ISO ALPHA-3 using Excel Macro

I have an Excel file where I have the 2-letter country codes in a column. I would like to be able to run a macro to safely convert all of them into their respective 3-letter codes, with a single pass. When using normal find and replace in Excel, you…
gadgetic
  • 11
  • 5
0
votes
2 answers

Converting "fr_FR" into "French (France)" in both directions. (Objective-C iPhone)

I can easily change a short region-code (en_US) into a longer string... but it there an easy way to also move in the other direction? [displayInEnglish displayNameForKey:NSLocaleIdentifier value:regionCountryCode]; "en_US" becomes "English (United…
Susanna
  • 771
  • 3
  • 10
  • 17
0
votes
1 answer

Where can I find the country number in magento?

I've read a lot about countrycodes in Magento, but now my question is; where can I find country numbers in Magento? Does this exist? I'm no programmer so I can not edit some code. We recieved an order from Austria, but somehow Magento sends the…
Micha
  • 1
  • 1