Martijn Moeling
martijn at xs4us.nu
Wed Jan 31 17:05:22 EST 2007
Like req.write(' <html>....').encode('utf-8') Or Def do_some_processing(Req): Req.return_html+="<!-- -->\n" Handler(Req): Req.return_html="" Req.return_html+="<html>....\n" do_some_processing(Req) Req.write(Req.return_html).encode('utf-8') ...... Martijn -----Oorspronkelijk bericht----- Van: mod_python-bounces at modpython.org [mailto:mod_python-bounces at modpython.org] Namens Daniel Nogradi Verzonden: Wednesday, January 31, 2007 21:28 Aan: mod_python at modpython.org Onderwerp: Re: [mod_python] How to set utf-8 charset from mod_python? > 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? _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://mailman.modpython.org/mailman/listinfo/mod_python
|