note 79143 added to function.mb-convert-encoding
| From: | mightye at gmail dot com | Date: | Tue, 13 Nov 2007 17:24:48 +0000 |
| Subject: | note 79143 added to function.mb-convert-encoding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132227@lists.php.net to get a copy of this message | ||
To petruzanauticoyahoo?com!ar
If you don't specify a source encoding, then it assumes the internal (default) encoding. ñ
is a multi-byte character whose bytes in your configuration default (often iso-8859-1) would
actually mean ñ. mb_convert_encoding() is upgrading those characters to their multi-byte
equivalents within UTF-8.
Try this instead:
<?php
print mb_convert_encoding( "ñ", "UTF-8", "UTF-8" );
?>
Of course this function does no work (for the most part - it can actually be used to strip
characters which are not valid for UTF-8).
----
Server IP: 64.71.164.2
Probable Submitter: 146.145.51.166
----
Manual Page -- http://www.php.net/manual/en/function.mb-convert-encoding.php
Edit -- https://master.php.net/note/edit/79143
Del: integrated -- https://master.php.net/note/delete/79143/integrated
Del: useless -- https://master.php.net/note/delete/79143/useless
Del: bad code -- https://master.php.net/note/delete/79143/bad+code
Del: spam -- https://master.php.net/note/delete/79143/spam
Del: non-english -- https://master.php.net/note/delete/79143/non-english
Del: in docs -- https://master.php.net/note/delete/79143/in+docs
Del: other reasons-- https://master.php.net/note/delete/79143
Reject -- https://master.php.net/note/reject/79143
Search -- https://master.php.net/manage/user-notes.php