Please sign in to comment.
Normalize handling of special Unicode characters when uploading files…
…, for example when a file is uploaded with the filename Poëzie.pdf... - IE uploads with filename = u'Po\xebzie.pdf' - Chrome (Mac) uploads with filename = u'Poe\u0308zie.pdf' which are essentially the same character, just in a different Unicode normalization form. Using unicodedata.normalize('NFC', …) the filename is normalized to the NFC variant (e\u0308 becomes \xeb), which is handled further by Django.
- Loading branch information...