From: Maxim Mamontov Date: Mon, 11 Apr 2011 11:50:01 +0000 (+0300) Subject: Add koi8 -> utf8 conversion for the dir names X-Git-Tag: 2.407-rc3~13 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/42c4d12010e1ed77ea2934073b1298cf7b852ce8 Add koi8 -> utf8 conversion for the dir names --- diff --git a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp index 11cf970c..91f910e0 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp @@ -37,7 +37,7 @@ std::vector dirnameVal; for (int i = 0; i< DIR_NUM; i++) { - dirnameVal.push_back(xmlrpc_c::value_string(dirNames[i])); + dirnameVal.push_back(xmlrpc_c::value_string(IconvString(dirNames[i], "KOI8-RU", "UTF-8"))); } structVal["dir_names"] = xmlrpc_c::value_array(dirnameVal);