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

UnicodeError while post processing

Open thinxer opened this issue 11 years ago • 1 comments

In django-staticfiles/staticfiles/storage.py, post_processing, the original_file is just read but not decoded, leading to UnicodeError if the original_file contains non-ascii characters.

https://github.com/jezdez/django-staticfiles/blob/develop/staticfiles/storage.py#L266

thinxer avatar Aug 01 '13 05:08 thinxer

However, it may be not possible to determine the correct encoding of the file. Maybe making the default to 'utf-8' is better.

thinxer avatar Aug 01 '13 05:08 thinxer