[Plugin: Greg's Comment Length Limiter] Problem with diacritic
-
Hello,
my language (Czech) use letters with diacritic (“ěščřžýáíé …”).
In utf-8 strlen(‘ě’) == 2.Problem:
upper limit is “6”
comment box contains “abcědef”
result would be “abcěde”
but in real is “abcěd”Solution:
in functioncomment_trimmeradd before 1st line
$length += (strlen($totrim) - mb_strlen($totrim, get_option('blog_charset')));Michal
http://ww.wp.xz.cn/extend/plugins/gregs-comment-length-limiter/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: Greg's Comment Length Limiter] Problem with diacritic’ is closed to new replies.