use mb_strlen when iterating utf8

This commit is contained in:
Friendika 2011-08-18 19:14:13 -07:00
parent 2df7251b34
commit 457f8c3e95
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ if(! function_exists('xmlify')) {
function xmlify($str) {
$buffer = '';
for($x = 0; $x < strlen($str); $x ++) {
for($x = 0; $x < mb_strlen($str); $x ++) {
$char = $str[$x];
switch( $char ) {