latin1 encoding as default?

Gerhard Häring gh at ghaering.de
Sat May 24 14:05:21 EDT 2003


Gerhard Häring wrote:
> Helmut Jarausch wrote:
> 
>> Klaus Meyer wrote:
>>
>>>> is there a means to configure Python such that I
>>>> can enter string constants in latin1-encoding?
>>>
>>>
>>>
>>>
>>> Do you mean this? http://www.python.org/peps/pep-0263.html
>>>
>>
>> Many thanks, that's exactly what I was looking for,
>> it works fine in a Python 2.3 scirpt
>> but how can I tell idle .
>> If I enter
>> # _*_ coding: latin1 _*_
>>
>> as the first line in 'idle'
>> it doesn't have an effect.
>>
>> Did I miss something?

Btw. it's spelled "-*- coding: {encoding} -*-", not with underscores.

-- Gerhard





More information about the Python-list mailing list