<div dir="ltr"><div class="gmail_default" style><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">I submitted a patch several months ago about this issue,</font></div><div class="gmail_default" style>
<font color="#000000" face="arial, helvetica, sans-serif">here <a href="http://lists.freedesktop.org/archives/spice-devel/2014-February/016158.html">http://lists.freedesktop.org/archives/spice-devel/2014-February/016158.html</a></font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">I check it again, and find that the value of g_key_file_to_data(keyfile,...) is always utf-8,</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">for the value of g_uri_list_extract_uris() is utf8 urlencode.</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"><br>
</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">So the display problem is </font><span style="color:rgb(0,0,0);font-family:'Microsoft YaHei';font-size:12.800000190734863px;white-space:nowrap">caused by vd_agent, but how it displays depends on the</span></div>
<div class="gmail_default" style><span style="color:rgb(0,0,0);font-family:'Microsoft YaHei';font-size:12.800000190734863px;white-space:nowrap">language of system, the following two screenshots show the difference:</span></div>
<div class="gmail_default" style><font color="#000000" face="Microsoft YaHei"><span style="white-space:nowrap"><a href="http://int64ago-tmp.qiniudn.com/guest-Chinese.png">http://int64ago-tmp.qiniudn.com/guest-Chinese.png</a></span></font><br>
</div><div class="gmail_default" style><font color="#000000" face="Microsoft YaHei"><span style="white-space:nowrap"><a href="http://int64ago-tmp.qiniudn.com/guest-English.png">http://int64ago-tmp.qiniudn.com/guest-English.png</a></span></font></div>
<div class="gmail_default" style><span style="color:rgb(0,0,0);font-family:'Microsoft YaHei';font-size:12.800000190734863px;white-space:nowrap"><br></span></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">---</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> vdagent/file_xfer.cpp | 5 ++++-</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> 1 file changed, 4 insertions(+), 1 deletion(-)</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">diff --git a/vdagent/file_xfer.cpp b/vdagent/file_xfer.cpp</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">index e402eb2..553a3f3 100644</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">--- a/vdagent/file_xfer.cpp</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">+++ b/vdagent/file_xfer.cpp</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">@@ -81,7 +81,10 @@ void FileXfer::handle_start(VDAgentFileXferStartMessage* start,</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> </font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> strcat(file_path, "\\");</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> strcat(file_path, file_name);</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">- handle = CreateFileA(file_path, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL);</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">+ int len = MultiByteToWideChar(CP_UTF8, 0, file_path, -1, NULL, 0);</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">+ wchar_t wfile_path[MAX_PATH];</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">+ MultiByteToWideChar(CP_UTF8, 0, file_path, -1, wfile_path, len);</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">+ handle = CreateFileW(wfile_path, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL);</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> if (handle == INVALID_HANDLE_VALUE) {</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> vd_printf("failed creating %s %lu", file_path, GetLastError());</font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif"> return;</font></div><div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">-- </font></div>
<div class="gmail_default" style><font color="#000000" face="arial, helvetica, sans-serif">1.9.3</font></div></div><div><br></div>-- <br><div dir="ltr"><font color="#cfe2f3">Q</font><font color="#9fc5e8">S</font><font color="#6fa8dc">B</font><font color="#3d85c6">D</font><font color="#0b5394">T</font><font color="#073763">0</font><font color="#0c343d">R</font><font color="#134f5c">F</font><font color="#45818e">U</font><font color="#76a5af">i</font><font color="#a2c4c9">B</font><font color="#d0e0e3">G</font><font color="#d9ead3">U</font><font color="#b6d7a8">k</font><font color="#93c47d">9</font><font color="#6aa84f">N</font><font color="#38761d">I</font><font color="#274e13">F</font><font color="#7f6000">J</font><font color="#bf9000">J</font><font color="#f1c232">R</font><font color="#ffd966">V</font><font color="#ffe599">N</font><font color="#fff2cc">U</font><font color="#fce5cd">I</font><font color="#f9cb9c">E</font><font color="#f6b26b">9</font><font color="#e69138">G</font><font color="#b45f06">I</font><font color="#783f04">E</font><font color="#660000">N</font><font color="#990000">U</font><font color="#cc0000">U</font><font color="#e06666">0V</font><font color="#ea9999">V</font></div>
</div>