> 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


Well, that doesn't work here.. Also, according to docs, all $_GET variables are 
already urldecoded when they're accessed in the script.
Nevertheless, urldecode doesn't give the result I was looking for. I've also 
tried mb_convert_encoding, html_entity_decode and combinations all over...

And I can't see why there are THREE characters in the URL, the original is only 
one 'ö'. If I simply do a echo urlencode('ö') it shows %C3%B6.

Anders.



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

Reply via email to