Home  |  Linux  | Mysql  | PHP  | XML
From:Michael Shadle Date:Thu Mar 11 22:08:22 2010
Subject:Re: $_GET is Mangling Base64 value
On Thu, Mar 11, 2010 at 1:57 PM, George Langley <george.langley@shaw.ca> wrote:

> xxxxx is a Japanese phrase, that has been encoded into Base64. So is using the + symbol:
>
> ...OODq+OCou...
>
> but my $_GET is replacing the + with a space:
>
> ...OODq OCou...
>
> thus the base64_decode() is failing (displays diamonds with questions marks on my Mac).

You could always pre-parse it with

$_GET['foo'] = str_replace(' ', '+', $_GET['foo']);

and inject them back in... I have had to do something like that in the
past because of the same issue (I either needed to add or remove the +
I forget)
Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: [PHP] php selecting multiple stylesheets
cvs: peardoc /en/package/xml/xml-serializer/xml-unserializer options.xml
cvs: peardoc /en/package/fileformats/contact-vcard-build intro.xml usage.xml
LMPX.COM :: Linux, Mysql, Php, Xml
Re: [PHP] Re: PHP in HTML code



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants