python - Django naturaltime() adds strange characters -
with django 1.8.2 when use naturaltime on timestamp ready following result:
from django.contrib.humanize.templatetags.humanize import naturaltime naturaltime(datetime.datetime(2015, 6, 16, 19, 37, 38, 338598)) '2\xa0days ago'
if downgrade earlier django (e.g. 1.6.2), result want:
'2 days ago'
does know why be?
Comments
Post a Comment