On the comments of rickyale and djmaze...
Is what you try to achieve is not a combination of utf8 and
url encoding, e.g. :
<?
$str = "bløf Charlène";
$enc = urlencode(utf8_encode($str));
$str2 = utf8_decode(urldecode($enc));
echo "$str -> $enc -> $str2";
?>
will output:
bløf Charlène -> bl%C3%B8f+Charl%C3%A8ne -> bløf
Charlène
At least works for me, Jeroen Hofstee
----
Server IP: 194.109.193.119
Probable Submitter: 82.73.136.141
----
X-Spam-Status: No, hits=3.1 required=5.0
tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.rawurlencode.php
Edit -- http://master.p
hp.net/note/edit/62407
Del: integrated -- ht
tp://master.php.net/note/delete/62407/integrated
Del: useless -- http:
//master.php.net/note/delete/62407/useless
Del: bad code -- http
://master.php.net/note/delete/62407/bad+code
Del: spam -- http://m
aster.php.net/note/delete/62407/spam
Del: non-english -- h
ttp://master.php.net/note/delete/62407/non-english
Del: in docs -- http:
//master.php.net/note/delete/62407/in+docs
Del: other reasons-- http://master
.php.net/note/delete/62407
Reject -- http://master
.php.net/note/reject/62407
Search -- http://ma
ster.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|