note 110229 deleted from function.substr by googleguy
| From: | googleguy@php.net | Date: | Wed, 03 Oct 2012 12:33:08 +0000 |
| Subject: | note 110229 deleted from function.substr by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191114@lists.php.net to get a copy of this message | ||
Note Submitter: garik dot djan at gmail dot com
----
ÐеÑÑÐ¸Ñ PHP 5.3.5
ÐÑибка: пÑи обÑезании ÑÑÑоки
(кодиÑовка utf-8) в вÑводе
поÑвлÑеÑÑÑ Ð·Ð½Ð°Ðº "?"
РеÑение: обÑезаÑÑ ÑÑÑÐ¾ÐºÑ Ð½Ð°
ÑеÑное ÑиÑло.
Ðозможно ÑÑо оÑибка ÑвÑзана
Ñ ÐºÐ¾Ð´Ð¸Ñовками Ñимволов UNICODE (2
байÑа на 1 Ñимвол). ÐÑи
вÑполнении ÑÑнкÑии не
ÑÑиÑÑваеÑÑÑ ÑÑа
оÑобенноÑÑÑ Ð¸ ÑÑÑока
поÑÑиÑÑÑ.
------
PHP 5.3.5 version
Error: circumcision string (utf-8) in the output appears as "?"
Solution: truncate to an even number.
Perhaps this error is associated with a character set UNICODE (2 bytes for one character). If the
function does not take into account this feature and the Port line.