note 82964 added to function.chunk-split

From: Date: Sat, 03 May 2008 18:38:46 +0000
Subject: note 82964 added to function.chunk-split
Groups: php.notes 
Request: Send a blank email to php-notes+get-139037@lists.php.net to get a copy of this message
"version" of chunk_split for cyrillic characters in UTF-8 public function UTFChunk($Text,$Len = 10,$End = "\r\n") { if(mb_detect_encoding($Text) == "UTF-8") { return mb_convert_encoding( chunk_split( mb_convert_encoding($Text, "KOI8-R","UTF-8"), $Len,$End ), "UTF-8", "KOI8-R" ); } else { return chunk_split($Text,$Len,$End); } } this is example for russian language ---- Server IP: 195.54.192.44 Probable Submitter: 127.0.0.1 ---- Manual Page -- http://www.php.net/manual/en/function.chunk-split.php Edit -- https://master.php.net/note/edit/82964 Del: integrated -- https://master.php.net/note/delete/82964/integrated Del: useless -- https://master.php.net/note/delete/82964/useless Del: bad code -- https://master.php.net/note/delete/82964/bad+code Del: spam -- https://master.php.net/note/delete/82964/spam Del: non-english -- https://master.php.net/note/delete/82964/non-english Del: in docs -- https://master.php.net/note/delete/82964/in+docs Del: other reasons-- https://master.php.net/note/delete/82964 Reject -- https://master.php.net/note/reject/82964 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139037) next »