Encoding problem with web application (Paste+Mako)

msj at infoserv.dk msj at infoserv.dk
Wed Jun 6 03:08:32 EDT 2007


Hi

I have a problem with encoding non-ascii characters in a web
application. The application uses Paste and Mako.

The code is here: http://www.webudkast.dk/demo.txt

The main points are:

After getting some user generated input using
paste.request.parse_formvars, how should this be correctly saved to
file?

How should this afterward be read from the file, and fed correctly
into a Mako template?

Thanks.
Martin




More information about the Python-list mailing list