ID: 19569 User updated by: [EMAIL PROTECTED] -Summary: urlencode() problem encoding strings single quotes Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *URL Functions Operating System: Windows NT 4.0 SP6 PHP Version: 4.2.3 New Comment:
fixed typo in title Previous Comments: ------------------------------------------------------------------------ [2002-09-24 02:01:29] [EMAIL PROTECTED] I really hesitated putting this in as a bug, because it seems so simple. The urlencode() documentation seems to imply that the following script should work fine, however it fails to output the second printf() on my system. I am running with the php.ini-recommended INI file on Windows NT 4.0 SP6. (I've tried various combinations of htmlentities() and htmlspecialchars() with the urlencode() as well, but so far without success.) Here's the script: <html> <head> </head> <body> <?php $test_str = "Mickey's Fun House"; printf ($test_str); $encoded_str = urlencode ($test_str); printf ($encoded_str); ?> </body> </html> If this is something stupid on my end, I apologize for the bother. Thanks, Dave Barndt ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19569&edit=1