View Single Post

  #3 (permalink)  
Old 09-05-2004
Brion Vibber
 
Posts: n/a
Default Re: Problem with length of Multibyte String

lian wrote:
> Problem happened on function "strlen". utf-8 string consists of
> multibye characters. Every characters have more than one byte. But to
> function "strlen", every character is just one byte.


Is mbstring.func_overload on? If so, this is overridding the normal
strlen function with mb_strlen which returns the number of characters
instead of bytes. Try turning it off.

See http://www.php.net/mb_string

-- brion vibber (brion @ pobox.com)
Reply With Quote