Re: URL data decoding problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-04-21 at 08:39 +0200, Anders Norrbring wrote:
> 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.
> 
> 
You can use urldecode() to decode the %xx characters to their actual
character.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux