<p dir="ltr">^strong^string . Sorry for the Swypo.<br>
</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Jul 25, 2016 1:55 AM, &quot;Eric Vought&quot; &lt;<a href="mailto:evought@pobox.com">evought@pobox.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">According to this:<a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx" target="_blank"> https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx</a> NTFS stores file names internally in Unicode, but there are several versions of the API calls to get short/long/Unicode names. So, since CHIRP uses Unicode internally, it is likely not a matter of converting the path to Unicode but making sure that all of the API calls catch it that way in the first place (which should never hurt folks with only ASCII characters in their paths).</p>
<p dir="ltr">This page ( <a href="http://stackoverflow.com/questions/10180765/open-file-with-a-unicode-filename" target="_blank">http://stackoverflow.com/questions/10180765/open-file-with-a-unicode-filename</a> ) has details on handling this in Python. If you explicitly pass a Unicode strong *in* you will always get Unicode back from the call. Example with os.listdir() at bottom.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Jul 24, 2016 5:05 PM, &quot;Shon Edwards&quot; &lt;<a href="mailto:sre.1966@gmail.com" target="_blank">sre.1966@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hadn&#39;t thought of that; that&#39;s a wonderful idea.  We live in a worldwide Unicode world now.  Some of my radios can be programmed in Japanese, others in European languages.  MS started to enable Windows and apps for Unicode over 15 years ago.  No reason to not go along now.  Thx.<div><br></div><div>Shon</div><div>K6QT</div></div><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:small">Shon R. Edwards, MA, AG (Czech Republic)<br></div><div style="font-size:small"><div><div dir="ltr"><div dir="ltr">Amateur call:  K6QT<br>1039 N 2575 W<br>Layton, UT, 84041-7709<br>USA<br>Home phone:  <a href="tel:%28801%29%20444-3445" value="+18014443445" target="_blank">(801) 444-3445</a></div><div dir="ltr">E-mail:  <a href="mailto:sre.1966@gmail.com" style="color:rgb(17,85,204)" target="_blank">sre.1966@gmail.com</a><br></div><div dir="ltr"><br></div><div dir="ltr">or</div><div dir="ltr"><br></div><div dir="ltr">Shon Edwards</div><div dir="ltr">715 Strawberry Creek Private Rd.</div><div dir="ltr">Bedford, WY 83112<br>Cell:  <a href="tel:%28307%29%20248-2104" value="+13072482104" target="_blank">(307) 248-2104</a></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sun, Jul 24, 2016 at 2:57 PM, Tom Hayward <span dir="ltr">&lt;<a href="mailto:tom@tomh.us" target="_blank">tom@tomh.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Sun, Jul 24, 2016 at 10:19 AM, Dan Smith &lt;<a href="mailto:dsmith@danplanet.com" target="_blank">dsmith@danplanet.com</a>&gt; wrote:<br>
&gt;&gt; A command line option could solve it so<br>
&gt;&gt; easily.<br>
&gt;<br>
&gt; Patches are welcome.<br>
&gt;<br>
&gt; The problem is, of course, not one of knowing whether we&#39;re on windows<br>
&gt; and doing something different, but the actual &quot;something different&quot;<br>
&gt; itself. Few of the chirp developers use windows and/or have non-ascii<br>
&gt; characters in their usernames.<br>
&gt;<br>
&gt; It takes someone interested in and capable of solving the problem. If<br>
&gt; that&#39;s you, please see this page:<br>
&gt;<br>
&gt; <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" rel="noreferrer" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
<br>
</span>We had a similar problem when we received special characters in<br>
RepeaterBook data. I fixed that by converting the string encoding.<br>
Maybe something similar could be done with the home folder path<br>
string.<br>
<br>
<a href="http://chirp.danplanet.com/projects/chirp/repository/revisions/07d6115431a4/diff" rel="noreferrer" target="_blank">http://chirp.danplanet.com/projects/chirp/repository/revisions/07d6115431a4/diff</a><br>
<br>
Tom KD7LXL<br>
<div><div>_______________________________________________<br>
chirp_users mailing list<br>
<a href="mailto:chirp_users@intrepid.danplanet.com" target="_blank">chirp_users@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a><br>
This message was sent to Shon, K6QT at <a href="mailto:sre.1966@gmail.com" target="_blank">sre.1966@gmail.com</a><br>
To unsubscribe, send an email to <a href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" target="_blank">chirp_users-unsubscribe@intrepid.danplanet.com</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
chirp_users mailing list<br>
<a href="mailto:chirp_users@intrepid.danplanet.com" target="_blank">chirp_users@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a><br>
This message was sent to Eric Vought at <a href="mailto:evought@pobox.com" target="_blank">evought@pobox.com</a><br>
To unsubscribe, send an email to <a href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" target="_blank">chirp_users-unsubscribe@intrepid.danplanet.com</a><br></blockquote></div></div>
</blockquote></div></div>