note 123732 added to function.iconv
| From: | vokamut at gmail dot com | Date: | Wed, 03 Apr 2019 12:27:15 +0000 |
| Subject: | note 123732 added to function.iconv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210513@lists.php.net to get a copy of this message | ||
iconv() can throw exceptions:
$utf8text = 'ð';
try {
$text = iconv('Windows-1251', 'UTF-8', $utf8text);
} catch (ErrorException $e) {
$e->getMessage(); // Detected an illegal character in input string
}
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.194 (proxied: 188.168.95.224)
----
Manual Page -- http://php.net/manual/en/function.iconv.php
Edit -- https://master.php.net/note/edit/123732
Del: integrated -- https://master.php.net/note/delete/123732/integrated
Del: useless -- https://master.php.net/note/delete/123732/useless
Del: bad code -- https://master.php.net/note/delete/123732/bad+code
Del: spam -- https://master.php.net/note/delete/123732/spam
Del: non-english -- https://master.php.net/note/delete/123732/non-english
Del: in docs -- https://master.php.net/note/delete/123732/in+docs
Del: other reasons-- https://master.php.net/note/delete/123732
Reject -- https://master.php.net/note/reject/123732
Search -- https://master.php.net/manage/user-notes.php