django-htmlmin icon indicating copy to clipboard operation
django-htmlmin copied to clipboard

ASCII Error?

Open rdegges opened this issue 12 years ago • 4 comments

Hi guys,

I'm using your html minifcation on some HTML output for a blog. I'm getting an error that says: "'ascii' codec can't encode character u'\u22c5' in position 53: ordinal not in range(128)"

Any idea what I can do to get that fixed? From what I can see in the source code, it looks like you're trying to decode everything with utf-8, which makes me wonder why I'm getting an ASCII error.

Any ideas?

Thank you.

rdegges avatar Jan 27 '13 09:01 rdegges

There needs to be a test written that verifies HTML with special characters can minify.

roycehaynes avatar Jan 27 '13 14:01 roycehaynes

Hi! Can you upgrade version on PyPi with this fix?

rskvazh avatar Feb 13 '13 08:02 rskvazh

Released! http://pypi.python.org/pypi/django-htmlmin/0.6.1

andrewsmedina avatar Feb 13 '13 15:02 andrewsmedina

Thanks! It works now with small modifications of pelican-minify

rskvazh avatar Feb 13 '13 18:02 rskvazh