Hi,

Just found a neat solution that I haven't seen anywhere else to force
StaticUrlParser to serve files as utf-8.

in config/middleware.py ::

import mimetypes

in the make_app function just before the StaticURLParser gets instansiated ::

mimetypes.add_type('text/html; charset=utf-8', '.html');

and the Content-Type header for html files will reflect the new mime-type

now I can remove those horrible 'http-equiv''s :-)

Thomas Sidwick

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to