Country Code to Country Name

670 views
Skip to first unread message

Pooge

unread,
Dec 10, 2012, 11:02:50 AM12/10/12
to libphonenum...@googlegroups.com
    Dos libPhonenumber provide code to translate a country code into a country name?

Shaopeng

unread,
Dec 10, 2012, 3:40:08 PM12/10/12
to libphonenum...@googlegroups.com
By country code, do you mean country calling code (e.g. 41 for Switzerland)?

If so, you can get the 2 letter ISO country code from country calling code with libphonenumber, but for the display country name in different languages, you can use the Java Locale class or ICU, which is available in multiple languages.

Cheers,

Shaopeng
Reply all
Reply to author
Forward
0 new messages