Re: serializing and urlencoding
| From: | Matt McClanahan | Date: | Sun, 29 Oct 2000 08:19:44 +0000 |
| Subject: | Re: serializing and urlencoding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22530@lists.php.net to get a copy of this message | ||
On Sun, 29 Oct 2000, C H A D wrote:
> I need to pass '+' signs via urls, as part of a string, without them
> being misenterpreted. I'm trying to pass UIDL's via GET requests
> (strings that look like 'y8%+fdJJsc[;66' ) but unfortunately some UIDL's
> contain the '+' sign which, even after encoding & serialzing, are still
> regarded as spaces and not part of the UIDL string.
Hmm. How are you running urlencode?
When I urlencode your example string..
<?= urlencode('y8%+fdJJsc[;66') ?>
I get y8%25%2BfdJJsc%5B%3B66
where the '+' has been converted to %2B
Matt