^strong^string . Sorry for the Swypo.
According to this: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx 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).
This page ( http://stackoverflow.com/questions/10180765/open-file-with-a-unicode-filename ) 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.
On Jul 24, 2016 5:05 PM, "Shon Edwards" <sre.1966@gmail.com> wrote:Hadn't thought of that; that'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.ShonK6QTShon R. Edwards, MA, AG (Czech Republic)E-mail: sre.1966@gmail.comorShon Edwards715 Strawberry Creek Private Rd.Bedford, WY 83112
Cell: (307) 248-2104On Sun, Jul 24, 2016 at 2:57 PM, Tom Hayward <tom@tomh.us> wrote:On Sun, Jul 24, 2016 at 10:19 AM, Dan Smith <dsmith@danplanet.com> wrote:
>> A command line option could solve it so
>> easily.
>
> Patches are welcome.
>
> The problem is, of course, not one of knowing whether we're on windows
> and doing something different, but the actual "something different"
> itself. Few of the chirp developers use windows and/or have non-ascii
> characters in their usernames.
>
> It takes someone interested in and capable of solving the problem. If
> that's you, please see this page:
>
> http://chirp.danplanet.com/projects/chirp/wiki/Developers
We had a similar problem when we received special characters in
RepeaterBook data. I fixed that by converting the string encoding.
Maybe something similar could be done with the home folder path
string.
http://chirp.danplanet.com/projects/chirp/repository/revisions/07d6115431a4/diff
Tom KD7LXL
_______________________________________________
chirp_users mailing list
chirp_users@intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_users
This message was sent to Shon, K6QT at sre.1966@gmail.com
To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
_______________________________________________
chirp_users mailing list
chirp_users@intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_users
This message was sent to Eric Vought at evought@pobox.com
To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com