SyntaxError: encoding problem: with BOM

Christian Heimes lists at cheimes.de
Thu Dec 25 19:48:55 EST 2008


NoName schrieb:
>> NoName, Asking people to download a zip file from a website written in
>> a language and character set that they probably are not familiar with
>> is liable to make them rather nervous and not bother. It's not a good
>> way to ask for help.
> 
> sorry:)
> 
> Now i know where problem.
> But i dont know how to solve it.
> 
> Error
> ----
> C:\Documents and Settings\Ra\Рабочий стол>11.py
>   File "<decoding error>", line 1
> SyntaxError: encoding problem: with BOM
> 
> No error
> ----
> C:\Documents and Settings\Ra\Рабочий стол>python 11.py
> test
> 
> Error when russian symbols in full path to py-script.
> Is it Python bug? or i need to modify some registry keys?
> 
> OS: WinXP SP3 Russian.
> Python 3.0 (r30:67507, Dec  3 2008, 20:14:27) [MSC v.1500 32 bit
> (Intel)] on win32

It's a bug, please report it. I though we fixed all Windows path bugs
for 3.0 but apparently one slipped through.

Christian




More information about the Python-list mailing list