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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -