openpolis / open-action

Source code repository for the OpenAction project.
0 stars 3 forks source link

Unicode truncatewords #12

Closed joke2k closed 11 years ago

joke2k commented 11 years ago

linea 85 di action_tags.py

"blogpost_excerpt": filters.truncatewords(blogpost.html, 300), 

lancia un :

Caught UnicodeDecodeError while rendering: 'ascii' codec can't decode byte 0xe2 in position 62: ordinal not in range(128)

ovviamente il contenuto ha dei caratteri accentati.

matteo88 commented 11 years ago

prova con unicode(filters.truncatewords(blogpost.html, 300))