Re: What is the encoding of __file__?

2008-01-07 Thread Martin v. Löwis
> Thanks, I'll then use sys.getfilesystemencoding() to decode _file__ > and re-encode into utf-8, which is the default encoding of all strings > in our software, as we deal a bit with Chinese terms. > > Windows-1252 on my box. I just created a directory containing Chinese > characters (on Vista),

Re: What is the encoding of __file__?

2008-01-07 Thread anne . nospam01
On 7 Jan., 23:06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > can someone quickly tell me what the encoding of __file__ is? I can't > > find it in the documentation. > > > BTW, I'm using Python 2.5.1 on WIndows XP and Vista. > > It's platform-specific - the same encoding that is used for file

Re: What is the encoding of __file__?

2008-01-07 Thread Martin v. Löwis
> can someone quickly tell me what the encoding of __file__ is? I can't > find it in the documentation. > > BTW, I'm using Python 2.5.1 on WIndows XP and Vista. It's platform-specific - the same encoding that is used for file names (i.e. sys.getfilesystemencoding()). On Windows, it will be "mbcs"

What is the encoding of __file__?

2008-01-07 Thread anne . nospam01
Dear all, can someone quickly tell me what the encoding of __file__ is? I can't find it in the documentation. BTW, I'm using Python 2.5.1 on WIndows XP and Vista. Kind regards, Sebastian -- http://mail.python.org/mailman/listinfo/python-list