mirror of
https://github.com/django/django.git
synced 2025-10-21 15:52:54 +00:00
Fixed #18430 -- Use the FILE_CHARSET setting when reading from a file during post processing with the cached staticfiles storage. Thanks to Brant Young for initial debugging.
This commit is contained in:
parent
0a68a2994b
commit
3727f6d096
4 changed files with 9 additions and 3 deletions
|
@ -228,7 +228,7 @@ class CachedFilesMixin(object):
|
|||
|
||||
# ..to apply each replacement pattern to the content
|
||||
if name in adjustable_paths:
|
||||
content = original_file.read()
|
||||
content = original_file.read().decode(settings.FILE_CHARSET)
|
||||
converter = self.url_converter(name)
|
||||
for patterns in self._patterns.values():
|
||||
for pattern in patterns:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue