-
Notifications
You must be signed in to change notification settings - Fork 66
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
UnicodeEncodeError when uploading non-ascii filenames #69
Comments
Does nobody have an idea how to change the default ascii encoding? The Python default encoding is utf-8: |
At least several of the main developers should know exactly how to deal with this. |
The issue was with the apache webserver after all.
Don't forget to restart apache. A reload is not sufficient. Displaying the file does not work yet though..the non-ascii file is not found. |
When uploading a file with non-ascii characters, I get the following error:
These are the steps to reproduce the issue:
id_file = PrivateFileField(upload_to='id/', max_file_size=size_3mb, null=True, blank=True)
and add it to a form.Where can I set the encoding codec?
Python 3.8.5 and Django 3.2
The text was updated successfully, but these errors were encountered: