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
Unicode error #11
Comments
Hmmm. Well it appears that the trouble is that Django is trying to convert the filename to ascii. Looks like I probably just need to url encode the file name, before setting in the the header: http://stackoverflow.com/questions/2732268/django-unicode-filenames-with-ascii-headers Will hopefully get round to this later - unless you fancy submitting a pull request? |
Ok, I'm trying it, if it works, I submit a pull request. |
Hoped it was that simple.
|
(the worse part is that those accentuated characters used to be in extended ASCII) |
Ok do you want to give that a go? I've added some tests to check for unicode characters and encode them properly to master. |
It's great, I tested it in my use-case, it works. Thanks a lot. |
Ok good. It's also on PyPI now, so should be pip installable. |
Hi, I followed your documentation's suggestion to use django sendfile.
I'm French and as English persons we have some word with accentuation like a café.
It's rather common for us to have this kind of letters in file names, but here a stacktrace:
note: my file name is péter_là_gueule.txt
Using django 1.5 and gunicorn with UTF-8 encoded filesystem.
The text was updated successfully, but these errors were encountered: