From 6f4b1fbd0d61e338b13df247514829a92a78a899 Mon Sep 17 00:00:00 2001 From: veelion Date: Sun, 24 Jun 2018 19:59:09 +0800 Subject: [PATCH] fix #1253 --- sanic/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/request.py b/sanic/request.py index 7ce7620d..f08cb657 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -127,7 +127,7 @@ class Request(dict): try: if content_type == 'application/x-www-form-urlencoded': self.parsed_form = RequestParameters( - parse_qs(self.body.decode('utf-8'))) + parse_qs(self.body.decode('utf-8'), encoding='latin1')) elif content_type == 'multipart/form-data': # TODO: Stream this instead of reading to/from memory boundary = parameters['boundary'].encode('utf-8')