[Tutor] Unicode? UTF-8? UTF-16? WTF-8? ;)

Ray Jones crawlzone at gmail.com
Wed Sep 5 17:04:50 CEST 2012


On 09/05/2012 07:51 AM, Ray Jones wrote:
> subprocess.call(['dolphin', '/my_home/testdir/\u044c\u043e\u0432'])
>
> Dolphin's error message: 'The file or folder
> /my_home/testdir/\u044c\u043e\u0432 does not exist'
>
> But if I copy the characters as seen by Bash's shell and paste them into
> my subprocess.call(), Dolphin recognizes the directory just fine.
>
> So is Dolphin unicode-dead, or am I missing something?
>
>
> Ray
Answering myself here.....

I suspect I'm missing something because once within the folders, Dolphin
properly recognizes the characters....even so far as writing Arabic and
Hebrew "backward"....I wonder....

Sure enough. If I use the glob.glob() non-unicode characters (\x93\xbe)
on the command line, Dolphin understands it just fine.

Thanks all.


Ray
(Still wondering where unicode fits into all this....)


More information about the Tutor mailing list