On Mar 9, 2009, at 12:53 PM, Ross Vandegrift wrote:

>
> On Fri, Mar 06, 2009 at 03:17:55PM -0800, Philip Jenvey wrote:
>> This should work:
>>
>> config['pylons.request_options']['charset'] = None
>>
>> Maybe you don't have this line at the end of the environment.py? It
>> should come after config.init_app
>>
>> You can check request.charset later for what this is actually set to.
>> Only the value of None should disable unicode (US-ASCII won't).
>
> Yea, something is definitely incorrect with disabling Unicode
> handling.  I've setup a matching Apache/FCGI deployment with
> "config['pylons.request_options']['charset'] = None".  If I raise an
> Exception and "print request.charset" in the debug interface, I get
> 'utf-8'.
>
> I can confirm with LiveHTTPHeaders that my browser is not providing a
> Content-Type header that would be overriding the default character
> set.


Earlier you said the Apache/FCGI environment wasn't having problems,  
but local paster was. Are you now saying you end up with a charset  
value of utf-8 in both places?

Anyway, if it doesn't work in paster, I would concentrate on isolating  
the problem there, locally. However I'm unable to reproduce the issue  
with 0.9.7. Are you using 0.9.7 final? This may have been a bug in one  
of the earlier RC/betas.

--
Philip Jenvey


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