[mod_python] How to set utf-8 charset from mod_python?

Daniel Nogradi nogradi at gmail.com
Wed Jan 31 15:28:09 EST 2007


> How can set utf-8 charset using mod_python handler?
>
>  I used in my handler
>
>
> req.write('''	<html>
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> </head>
> <body>")
> ..
> ..
>
> but it does not work.
> Thank you for help

What is exactly what is not working? How do you try to output utf-8
characters? Do you use utf-8 encoding for your strings?


More information about the Mod_python mailing list