Re: python 3.1 unicode question

2009-09-16 Thread Duncan Booth
jeffunit wrote: >>That looks like a "surrogate escape" (See PEP 383) >>http://www.python.org/dev/peps/pep-0383/. It indicates the wrong >>encoding was used to decode the filename. > > That seems likely. How do I set the encoding to something correct to > decode the filename? > > Clearly win

Re: python 3.1 unicode question

2009-09-15 Thread Chris Rebert
On Tue, Sep 15, 2009 at 9:48 PM, jeffunit wrote: > At 09:25 PM 9/15/2009, Mark Tolonen wrote: >> >> "jeffunit" wrote in message >> news:20090915144123964.ljka6...@cdptpa-omta01.mail.rr.com... >>> >>> I wrote a program that diffs files and prints out matching file names. >>> I will be executing th

Re: python 3.1 unicode question

2009-09-15 Thread jeffunit
At 09:25 PM 9/15/2009, Mark Tolonen wrote: "jeffunit" wrote in message news:20090915144123964.ljka6...@cdptpa-omta01.mail.rr.com... I wrote a program that diffs files and prints out matching file names. I will be executing the output with sh, to delete select files. Most of the files names are

Re: python 3.1 unicode question

2009-09-15 Thread Mark Tolonen
"jeffunit" wrote in message news:20090915144123964.ljka6...@cdptpa-omta01.mail.rr.com... I wrote a program that diffs files and prints out matching file names. I will be executing the output with sh, to delete select files. Most of the files names are plain ascii, but about 10% of them have un

python 3.1 unicode question

2009-09-15 Thread jeffunit
I wrote a program that diffs files and prints out matching file names. I will be executing the output with sh, to delete select files. Most of the files names are plain ascii, but about 10% of them have unicode characters in them. When I try to print the string containing the name, I get an excep