Message272720
I think this CGI thing is a separate bug, just exacerbated by the stdin.encoding problem. :) The urllib.parse.parse_qs() function takes an encoding parameter to figure out what to do with percent-encoded values: "%A9" → b"\xA9".decode(...). This is different lower-level encoding: b"%A9".decode("ascii").
Maybe the best solution is just to remove the encoding argument, and let it revert to UTF-8, as it did before r87998. Or maybe it really should use the locale encoding. (Is that ASCII-compatible on Windows?) It really depends on where the query string was generated (in a browser, pre-computed URL, etc). |
|
Date |
User |
Action |
Args |
2016-08-15 06:32:00 | martin.panter | set | recipients:
+ martin.panter, lemburg, mhammond, terry.reedy, paul.moore, tzot, amaury.forgeotdarc, ncoghlan, pitrou, giampaolo.rodola, christian.heimes, tim.golden, mark, ned.deily, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, flox, davidsarah, santoso.wijaya, akira, BreamoreBoy, David.Sankel, smerlin, lilydjwg, piotr.dobrogost, Drekin, steve.dower, wiz21, stijn, Jonitis, escapewindow, dead1ne |
2016-08-15 06:32:00 | martin.panter | set | messageid: <1471242720.82.0.37756554766.issue1602@psf.upfronthosting.co.za> |
2016-08-15 06:32:00 | martin.panter | link | issue1602 messages |
2016-08-15 06:32:00 | martin.panter | create | |
|