Re: URL encode/decode problem
| From: | Rosen | Date: | Mon, 13 Sep 2004 16:15:42 +0000 |
| Subject: | Re: URL encode/decode problem | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196520@lists.php.net to get a copy of this message | ||
The sending form works with JavaScript. When enter on some field combination
"+ " plus sign and space - JScript encode it - I see it with alert -
"%2B%20" , but when new window opens on url bar shows "+%20" - thath means
space only.
"Greg Donald" <destiney@gmail.com> wrote in message
news:ea9da26c040913090550d9e50d@mail.gmail.com...
> On Mon, 13 Sep 2004 18:35:58 +0300, Rosen <rosen@pernikinfo.com> wrote:
> > I changed the JScript to encode data not as unicode - now it code data
as
> > "%20%2B%20".
> > But when I get data with $_REQUEST["var"] - I loose symbol "+" - with
code
> > "%2B".
>
> Can you change it back before you decode it? Maybe with str_replace() ?
>
>
> --
> Greg Donald
> http://destiney.com/