Quote Originally Posted by L.Marvell
Also there is QLocale class that has country(), language() and name() methods in Qt4. But there is no locale().
QLocale::name() looks promising:
QString QLocale::name () const
Returns the language and country of this locale as a string of the form "language_country", where language is a lowercase, two-letter ISO 639 language code, and country is an uppercase, two-letter ISO 3166 country code.
See also language() and country().
Quote Originally Posted by L.Marvell
but locale is koi8-u.
IMO that's the encoding, not locale.