Phillip Calvin
Phillip Calvin
Probably a duplicate of https://issuetracker.google.com/issues/174418229 and https://issuetracker.google.com/issues/160579253.
@gf3 First of all, the NERVE of appearing in my ONLINE EXPERIENCE. How dare you. Second: the `mimetypes` module happily returns the guessed encoding (same as using `file --mime-encoding [filename]`...
Alright, so `guess_type` doesn't actually use `libmagic` under the hood, and only understands/guesses compression encodings, not text encodings. The following commit "works" to set a charset automatically on uploaded files:...