On Mon, Mar 1, 2010 at 7:02 PM, grafman <[email protected]> wrote:
>  I want to set up mako so that it doesn't generate html entities in
> firefox so I need to change the default output of helper functions
> from utf-8 to ascii. Does anyone know where you do that and what the
> setting is?

It looks like it's:
config["pylons.response_options"]["charset"] = "ascii"

There's also the TemplateLookup argument 'input_encoding' in
environment.py, although that may not matter in your case.

Beware of UnicodeDecodeError if any non-ASCII characters sneak into
your output, of course.

> And while I'm asking, is there a good reference for the config values
> that are available for both pylons and mako?

I just run "paster shell" and look in 'config'. Mako's options are in
the Mako manual. For Pylons options, if there's not a list in the
Pylons docs or Pylons book, there's probably not one anywhere.

-- 
Mike Orr <[email protected]>

-- 
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