On 21 November 2012 17:35, Paul Wiseman &lt;<a href="mailto:poalman@gmail.com">poalman@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; I know this has been asked before, I&#39;ve found it in several trackers.<br>&gt;<br>&gt; <a href="http://twistedmatrix.com/trac/ticket/5411">http://twistedmatrix.com/trac/ticket/5411</a><br>
&gt; <a href="http://twistedmatrix.com/trac/ticket/4515">http://twistedmatrix.com/trac/ticket/4515</a><br>&gt; <a href="http://twistedmatrix.com/trac/ticket/5100">http://twistedmatrix.com/trac/ticket/5100</a><br>&gt;<br>&gt; Some of these were created a while ago, some with patches. I wondered what the current status was with regards to utf-8 in ftp? Is it currently possible?<br>
&gt;<br>&gt; I&#39;m trying to list a folder called &#39;Paul&rsquo;s Mac Pro&#39;, this gets returned as &#39;Paulâ s Mac Pro&#39;. The client tries to list that folder, and the server returns &#39;Paulâ  s Mac Pro: No such file or directory.&#39; I think the client is interpreting the bytes that make up the unicode char as separate ascii characters. (maybe a problem with the client? FileZilla 3.6.0.1)<br>
&gt;<br>&gt; This problem may be made worse by my implementation of IFTPShell, I can try to make an example if this isn&#39;t the expected result.<br>&gt;<br>&gt; I&#39;m returning all names and paths back encoded in utf-8, but maybe the problem is the client isn&#39;t expecting it because there&#39;s no FEAT command (is the patch in 4515 ok to add?)<br>
&gt;<br>&gt; I just want to get an idea of how I can best go about getting this to work. Will I need to build in support, or is it available in a newer version, or by applying some patches?<br>&gt;<br>&gt; Thanks very much!!<br>
&gt;<br>&gt; Paul<br><br><font face="courier new, monospace">&gt;&gt;&gt; a= &quot;Paulâ  s Mac Pro&quot; &nbsp;#This is what the client gets<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; a<br>&#39;Paul\xc3\xa2\xc2\x80\xc2\x99s Mac Pro&#39;<br>
&gt;&gt;&gt; a.decode(&quot;utf-8&quot;)<br>u&#39;Paul\xe2\x80\x99s Mac Pro&#39; #utf-8 encoding in a unicode string???<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; b= u&quot;Paul&rsquo;s Mac Pro&quot;<br>&gt;&gt;&gt; b.encode(&quot;utf-8&quot;)<br>
&#39;Paul\xe2\x80\x99s Mac Pro&#39;<br>&gt;&gt;&gt; </font><br><div><font face="courier new, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">So I&#39;m not sure exactly what&#39;s happening here, but it&#39;s like path has been encoded twice. Bit confused as to how this could be happening!</font></div>