#20568: templatetag truncatewords_html split words on special caracters ---------------------------+-------------------------------------- Reporter: yann0@… | Owner: nobody Type: Bug | Status: closed Component: Utilities | Version: 1.3 Severity: Normal | Resolution: worksforme Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------+-------------------------------------- Changes (by bmispelon):
* status: new => closed * needs_better_patch: => 0 * resolution: => worksforme * needs_tests: => 0 * needs_docs: => 0 Comment: Hi, I cannot reproduce the issue you're describing. I tried the following code with both 1.3 and master but it seems to be working correctly for me: {{{ >>> from django.template.defaultfilters import truncatewords_html >>> s = u"Depuis mars 2008, le programme RECYC-FRIGO d’Hydro-Québec vous permet de vous débarrasser d’un vieil appareil, réfrigérateur ou congélateur, facilement [...]" >>> truncatewords_html(s, 18) u'Depuis mars 2008, le programme RECYC-FRIGO d\u2019Hydro-Qu\xe9bec vous permet de vous d\xe9barrasser d\u2019un vieil appareil, r\xe9frig\xe9rateur ...' }}} I'm closing this ticket as `worksforme`. Could you please reopen it with an example of a piece of code that shows the issue you're having? Thanks. -- Ticket URL: <https://code.djangoproject.com/ticket/20568#comment:1> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/075.c6cdc51bed18be059a4839bf6bebbaf2%40djangoproject.com?hl=en. For more options, visit https://groups.google.com/groups/opt_out.