#3631: the built-in truncatewords filter can't deal with chinese -----------------------+---------------------------------------------------- Reporter: anonymous | Owner: jacob Status: new | Component: Uncategorized Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 -----------------------+---------------------------------------------------- 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. Thanks..
-- Ticket URL: <http://code.djangoproject.com/ticket/3631> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
