note 70107 added to function.urlencode
| From: | Benjamin dot Bruno at web dot de | Date: | Tue, 03 Oct 2006 16:54:04 +0000 |
| Subject: | note 70107 added to function.urlencode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117985@lists.php.net to get a copy of this message | ||
If you need to prepare strings with special characters (like German Umlaut characters) in order to
import them into flash files via GET, try using utf8_encode and rawurlencode sequentially, like
this:
<?php
function flash_encode ($input) {
return rawurlencode(utf8_encode($input));
}
?>
Thus, you can avoid having use encodeURI in JavaScript, which is only availabe in JavaScript 1.5.
----
Server IP: 217.160.72.57
Probable Submitter: 217.233.9.121
----
Manual Page -- http://www.php.net/manual/en/function.urlencode.php
Edit -- https://master.php.net/note/edit/70107
Del: integrated -- https://master.php.net/note/delete/70107/integrated
Del: useless -- https://master.php.net/note/delete/70107/useless
Del: bad code -- https://master.php.net/note/delete/70107/bad+code
Del: spam -- https://master.php.net/note/delete/70107/spam
Del: non-english -- https://master.php.net/note/delete/70107/non-english
Del: in docs -- https://master.php.net/note/delete/70107/in+docs
Del: other reasons-- https://master.php.net/note/delete/70107
Reject -- https://master.php.net/note/reject/70107
Search -- https://master.php.net/manage/user-notes.php