-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django default_storage breaks on non-ascii characters in files #11337
Comments
@whatisgalen you might consider posting on the django forum to gauge appetite for doing the same thing for the storage interface that was done for the file interface in 5.0 to allow all kwargs through to |
Just posted! |
Just noting that this platform dependent. Were you testing with Windows? |
Ubuntu 20 actually |
When importing a csv, often Django's
default_storage
module is used to handle the file, like so:However the default encoding used is ascii, creating an error for non-ascii characters. Django's
default_stoarge.open
method does not take anencoding=
kwarg like the pythonopen
method does, so there is no good way to force utf-8 encoding when opening files this way.The text was updated successfully, but these errors were encountered: