URL data decoding problem
| From: | Anders Norrbring | Date: | Tue, 21 Apr 2009 06:39:34 +0000 |
| Subject: | URL data decoding problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-291717@lists.php.net to get a copy of this message | ||
I'm working on a PayPal IPN module, and PayPal returns a lot of data in a
GET call.
The problem is that international characters entered by a user on the PayPal
site gets encoded really weird, and I don't see an obvious way to decode
them, can someone please assist?
My website is running utf-8 all over.
The URL contains this variable: &memo=Pr%EF%BF%BDvar
It should translate into &memo=Prövar
I've run out of ideas on this really.. PayPal say the reply is encoded in
"windows-1252".
Thanks,
Anders.