This is UTF-8. For example, 情報 is 2 characters, and ラ リ ー ペ イ ジ is 6 characters.
the code
$a = "情報"; $b = "ラリーペイジ"; echo mb_strlen($a, 'UTF-8') . "\n"; echo mb_strlen($b, 'UTF-8') . "\n";
Result
2 6
Use mb_strlen för multibyte character encodings such as UTF-8.
strlen(utf8_decode('情報'));
mb_strlen , , , .
mb_strlen('情報', 'UTF-8');
, mb_substr, utf8_decode .
Source: https://habr.com/ru/post/1727204/More articles:How to increase the speed of creating dynamic HTML tables in Firefox? - performanceCodeContracts metadata errors during rewriting - c #пользовательское изображение кнопки Back на панели навигации не работает! [iPhone SDK] - iphonePreprocessor C: removing quotes from an argument - macrosСколько времени средний разработчик Open Source тратит на проекты? - open-source.NET 4.0 Threading.Tasks - parallel-processingSilverlight TextBox Moving a Carriage Position - SilverlightRecord type ocaml and null - typesWCF IConnectionRegister Duplicate Log Entries - .netSoftware update of document library in Sharepoint - event-handlingAll Articles