1.

I Have Iso 3166-1 Country Code Information From A Server. How Do I Convert It To A Country Name That Is Readable By A User ?

Answer»

Construct a LOCALE object with the required country CODE and get the name of the country from the Locale object

For EXAMPLE:

Locale locale(LANGUAGE_ENG, COUNTRY_US);
OSP::Base::String countryName;
locale.GetCountryName(countryName);

Construct a Locale object with the required country code and get the name of the country from the Locale object

For example:

Locale locale(LANGUAGE_ENG, COUNTRY_US);
Osp::Base::String countryName;
locale.GetCountryName(countryName);



Discussion

No Comment Found