Re: URL data decoding problem

From: Date: Tue, 21 Apr 2009 06:52:26 +0000
Subject: Re: URL data decoding problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291718@lists.php.net to get a copy of this message
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

« previous php.general (#291718) next »