Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

UnicodeError while post processing #39

Open
thinxer opened this issue Aug 1, 2013 · 1 comment
Open

UnicodeError while post processing #39

thinxer opened this issue Aug 1, 2013 · 1 comment

Comments

@thinxer
Copy link

thinxer commented Aug 1, 2013

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
Copy link
Author

thinxer commented Aug 1, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant