Answers

Question and Answer:

  Home  Bada

⟩ Suppose 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 ?

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);

 194 views

More Questions for you: