HF RL Explorer

parse qsl ignores the encoding parameter when decoding percent-encoded query strings

parse qsl ignores the encoding parameter when decoding percent-encoded query strings: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). The urlutils.parse qsl function accepts an encoding parameter, but it is silently ignored when decoding percent-encoded characters in query string keys and…

The task

The `urlutils.parse_qsl` function accepts an `encoding` parameter, but it is silently ignored when decoding percent-encoded characters in query string keys and values. This means that even if you pass `encoding='latin-1'`, percent-encoded bytes are always decoded as UTF-8.

Part of FineEnvs/repo2rlenv-r2e-gym.