note 110229 added to function.substr

From: Date: Wed, 03 Oct 2012 12:25:34 +0000
Subject: note 110229 added to function.substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-191113@lists.php.net to get a copy of this message
Версия 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. ---- Server IP: 69.147.83.199 Probable Submitter: 213.108.200.199 ---- Manual Page -- http://www.php.net/manual/en/function.substr.php Edit -- https://master.php.net/note/edit/110229 Del: integrated -- https://master.php.net/note/delete/110229/integrated Del: useless -- https://master.php.net/note/delete/110229/useless Del: bad code -- https://master.php.net/note/delete/110229/bad+code Del: spam -- https://master.php.net/note/delete/110229/spam Del: non-english -- https://master.php.net/note/delete/110229/non-english Del: in docs -- https://master.php.net/note/delete/110229/in+docs Del: other reasons-- https://master.php.net/note/delete/110229 Reject -- https://master.php.net/note/reject/110229 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191113) next »