note 59030 added to function.iconv
| From: | nilcolor at gmail dot coom | Date: | Thu, 24 Nov 2005 11:29:26 +0000 |
| Subject: | note 59030 added to function.iconv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99019@lists.php.net to get a copy of this message | ||
Didn't know its a feature or not but its works for me (PHP 5.0.4)
iconv('', 'UTF-8', $str)
test it to convert from windows-1251 (stored in DB) to UTF-8 (which i use for web pages).
BTW i convert each array i fetch from DB with array_walk_recursive...
----
Manual Page -- http://www.php.net/manual/en/function.iconv.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59030
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59030&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59030&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59030&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59030&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59030&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59030&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59030&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59030&report=yes
Search -- http://master.php.net/manage/user-notes.php