the built-in truncatewords filter can't deal with chinese
|Reported by:||anonymous||Owned by:||jacob|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
i've tried to use the built-in the built-in truncatewords filter,
but it seems that it can not recognize Chinese characters.
As well as the wordcount filter has the same problem too.
No matter what the str is, the wordcount filter will return 1.
BTW, the str variable is utf-8 encoded, and i can use the len() method to get the correct length.