4 ms·
From that spec: > If any of the name-value pairs in pairs have a name component consisting of the string "_charset_" encoded in US-ASCII, and the value compone
by jasonhansel 5y ago
From that spec:
> If any of the name-value pairs in pairs have a name component consisting of the string "_charset_" encoded in US-ASCII, and the value component of the first such pair, when decoded as US-ASCII, is the name of a supported character encoding, then let encoding be that character encoding (replacing the default passed to the algorithm).
Ouch. I hope nobody actually implements that.
- tyingq 5y agoI couldn't find support for that in urllib or python requests. But googling a bit does show it's supported in a lot of software. For example: https://bugzilla.mozilla.org/show_bug.cgi?id=18643 https://bugzilla.mozilla.org/show_bug.cgi?id=18643