]> git.stg.codes - stg.git/commitdiff
Add koi8 -> utf8 conversion for the dir names
authorMaxim Mamontov <faust@gts.dp.ua>
Mon, 11 Apr 2011 11:50:01 +0000 (14:50 +0300)
committerMaxim Mamontov <faust@gts.dp.ua>
Mon, 11 Apr 2011 11:50:01 +0000 (14:50 +0300)
projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp

index 11cf970caa3bd5ed92fb34e9075efdfeb916153c..91f910e02e21a21145c4ef1bb48c482d6c75da44 100644 (file)
@@ -37,7 +37,7 @@ std::vector<xmlrpc_c::value> dirnameVal;
 
 for (int i = 0; i< DIR_NUM; i++)
     {
 
 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);
     }
 
 structVal["dir_names"] = xmlrpc_c::value_array(dirnameVal);