opening files with names in non-english characters.

Chris Rebert clp2 at rebertia.com
Mon Feb 23 13:02:50 EST 2009


On Mon, Feb 23, 2009 at 5:51 AM, venutaurus539 at gmail.com
<venutaurus539 at gmail.com> wrote:
> Hi all,
>          I am trying to find the attributes of afile whose name has
> non english characters one like given below. When I try to run my
> python scirpt, it fails giving out an error filename must be in string
> or UNICODE. When i try to copy the name of the file as a strinig, it
> (KOMODO IDE) is not allowing me to save the script saying that it
> cannot convert some of the characters in the current encoding which is
> Western European(CP-1252).
>
> 0010testUnicode_ėíîïðņōóôõöũøųúûüýþĸ !#$%&'()+,-.
> 0123456789;=@ABCD.txt.txt

(1) How are you entering or retrieving that filename?
(2) Please provide the exact error and Traceback you're getting.

Cheers,
Chris

-- 
Follow the path of the Iguana...
http://rebertia.com



More information about the Python-list mailing list