[Web-SIG] WSGI configuration and character encoding.
Phillip J. Eby
pje at telecommunity.com
Tue Nov 30 19:47:00 CET 2004
At 01:35 PM 11/30/04 -0500, Phillip J. Eby wrote:
>It'd be simpler to just use:
>
># encoding:windows-1252
>[server]
>webmaster: aláin_ó_cinnéide at spam.org
>
>Which is one of several valid ways to spell an encoding declaration under
>PEP 263, that is also a valid comment in ConfigParser .ini format.
Also note that *this*:
[wsgi]
encoding=windows-1252
Is a valid encoding prefix under PEP 263, which is why I was suggesting
that simply embedding an encoding option could be sufficient.
However, given the reasonable use case of BOM-prefixed files, I think it
would be best to use the PEP 263 specification instead, perhaps with the
addition of support for 16 or 32 bit encodings so long as they are
indicated by a BOM at the beginning of the file.
More information about the Web-SIG
mailing list