note 110229 deleted from function.substr by googleguy

From: 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.

« previous php.notes (#191114) next »