id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 21762 django.core.files.Storage#save does not respect settings.FILE_CHARSET anonymous nobody "Assuming that `chunk` is not an instance of `bytes`, this line: https://github.com/django/django/blob/7e2d61a9724644d6d1c7ce9361d9fd5be3e2ab86/django/core/files/storage.py#L226 will create a text-mode file without setting the encoding to `settings.FILE_CHARSET`. As a result, my CI builds were failing with `UnicodeEncodeError`s on invocation of `manage.py collectstatic` (which invoked django-pipeline, which uses this code)." Bug closed File uploads/storage 1.6 Normal needsinfo Unreviewed 0 0 0 0 1 0