Re: Unicode Error accessing request.params

2012-06-18 Thread Michael Merickel
>From my unaccepted SO answer.. AFAIK it's correct though. http://stackoverflow.com/a/11061308/704327 Pyramid supports a request factory. You can use this to decode the request. def request_factory(environ): req = pyramid.request.Request(environ) return req.decode(charset='gbk') config.

Re: Unicode Error accessing request.params

2012-06-18 Thread Brian Brinegar
Blaise, Unfortunately, I do not have access to the Paypal encoding settings. I'm tracking donations made to an account I do not own. So, I need to be able to accept windows-1252 encoding in my pyramid app. Is there a way I can decode and re-encode the request.body before it's parsed into the par

Re: Unicode Error accessing request.params

2012-06-18 Thread Blaise Laflamme
Hi Brian, yes you can change the encoding on paypal's end. Look here: Profile > My Selling Tools > Paypal button language encoding > More options And select utf8 on both popups. On Sunday, 17 June 2012 22:42:16 UTC-4, Brian wrote: > > I have a pyramid 1.2 application which processes donations m

Unicode Error accessing request.params

2012-06-17 Thread Brian Brinegar
I have a pyramid 1.2 application which processes donations made via PayPal using a service called PayPal Instant Payment Notification. Today, we had a donation from an international user with non-ascii characters in their last name. PayPal makes a post request to our server with information about t