This question may be related to a resolved thread.
I experience a similar problem as the thread describes. That is, it doesn’t restrict the words in some cases and show the full length instead. This doesn’t happen on my local PC but only starts to show up on my live server.
Both my weblog and output HTML header use charset: UTF-8 to begin with. I can trace down to the issue is with the actual PHP function call
preg_split('/\s/u', $str, -1, PREG_SPLIT_NO_EMPTY)When I pass the full string, it returns as one word. It doesn’t split the words at all.
To get around the problem, I am now using Char Limiter and it seems to get the job done. But I am interested to know what’s the problem, I think someone in the thread mentions it has something to do with the encoding but I don’t quite follow where to look into. Thanks.