|
export at hope.cz
export at hope.cz
Fri Feb 2 15:49:57 EST 2007
Thank you all who recently offered a solution to my UTF-8 problem.
So I added to my handler
req.content_type = 'text/html ;charset=utf-8'
req.write(''' <html>
....
...
...
(</html>""".decode('utf8').encode('utf8'))
But now when I try to call handler
like http://www..../mod/uploadvideo.py?24795
a download dialog is presented as if I wanted to download that script.
But If I do NOT use
charset=utf-8 in req.content_type
the script works good( except NOT utf-8 coding).and no download dialog is shown.
Where can be a problem?
Thank you for help
Lad.
|