diff --git a/aiohttp/formdata.py b/aiohttp/formdata.py index e6fb1f9b7bc..2a141dc6bf5 100644 --- a/aiohttp/formdata.py +++ b/aiohttp/formdata.py @@ -96,7 +96,7 @@ def _gen_form_urlencoded(self): charset = self._charset if self._charset is not None else 'utf-8' return payload.BytesPayload( - urlencode(data, doseq=True).encode(charset), + urlencode(data, doseq=True, encoding=charset).encode(), content_type='application/x-www-form-urlencoded') def _gen_form_data(self):