Python 3 encoding question: Read a filename from stdin, subsequently open that filename

Antoine Pitrou solipsis at
Tue Nov 30 16:19:19 CET 2010

On Mon, 29 Nov 2010 21:52:07 -0800 (PST)
Yingjie Lan <lanyjie at> wrote:
> --- On Tue, 11/30/10, Dan Stromberg <drsalists at> wrote:
> > In Python 3, I'm finding that I have encoding issues with
> > characters
> > with their high bit set.  Things are fine with strictly
> > filenames.  With high-bit-set characters, even if I
> > change stdin's
> > encoding with:
> Co-ask. I have also had problems with file names in
> Chinese characters with Python 3. I unzipped the 
> turtle demo files into the desktop folder (of
> course, the word 'desktop' is in Chinese, it is
> a windows XP system, localization is Chinese), then
> all in a sudden some of the demos won't work
> anymore. But if I move it to a folder whose 
> path contains only english characters, everything
> comes back to normal.

Can you try the latest 3.2alpha4 (*) and check if this is fixed?
If not, then could you please open a bug on ?


Thank you


More information about the Python-list mailing list