This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author [PhysiC]
Recipients [PhysiC]
Date 2009-07-28.09:42:59
SpamBayes Score 3.80689e-06
Marked as misclassified No
Message-id <1248774181.34.0.157512876081.issue6590@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,
I'm new to web programming with Python.
In Python2k, the special "# -*- coding: cp1254 -*-" code sets the
character encoding. It works in the internet browsers too and sets the
browser's character encoding. That was really good. But in Py3k, that
special comment doesn't work. Usually, the encoding is UTF-8 in my
browser. That time, non-ascii Turkish characters seems strange symbols.
The locale.setlocale method doesn't work too. The users must manualy set
the encoding from UTF-8 to Turkish(Windows-1254) or Turkish(ISO-8859-9).
Is there anyway to set browser's encoding with Python 3.1? 
I use IIS7 and Windows 7 x64.
BTW, the ASP don't identify Python. But I can use .py files. So, I did
these thing in CGI/.py
History
Date User Action Args
2009-07-28 09:43:01[PhysiC]setrecipients: + [PhysiC]
2009-07-28 09:43:01[PhysiC]setmessageid: <1248774181.34.0.157512876081.issue6590@psf.upfronthosting.co.za>
2009-07-28 09:42:59[PhysiC]linkissue6590 messages
2009-07-28 09:42:59[PhysiC]create