On Thu, Feb 19, 2009 at 04:10:43AM -0800, Loucash wrote: > I have to receive a POST data in iso-8859-2 and encode it to utf-8 and > store in db. > > I'm using > > config['pylons.request_options']['charset'] = None > > to turn off default decoding, but with no success. > > Unicode is broken, and it is the same as without changing > request_options. > > Any suggest?
I ran into the same problem with an app that passes string-pickled objects over HTTP. I changed by pickle.loads(data) calls to pickle.loads(str(data)) - only happens in a few places in my code, and that was easier than figuring out the actual problem :) Ross -- Ross Vandegrift [email protected] "If the fight gets hot, the songs get hotter. If the going gets tough, the songs get tougher." --Woody Guthrie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
