diff options
Diffstat (limited to 'i18nlangtag/source/languagetag')
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index 37e1893c52cd..de9294df51fc 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -1493,7 +1493,7 @@ void LanguageTag::convertFromRtlLocale() myLtError aError; theDataRef::get().incRef(); mpImplLangtag = lt_tag_convert_from_locale( aStr.getStr(), &aError.p); - maBcp47 = OStringToOUString( lt_tag_get_string( mpImplLangtag), RTL_TEXTENCODING_UTF8); + maBcp47 = OUString::fromUtf8( lt_tag_get_string( mpImplLangtag)); mbInitializedBcp47 = true; #else mnLangID = MsLangId::convertUnxByteStringToLanguage( aStr); |