Fix in getting data from post when utf8 decoding show error
This commit is contained in:
parent
8e53d279d4
commit
1024fe9e57
1 changed files with 8 additions and 1 deletions
|
|
@ -80,7 +80,14 @@ class GetPostFiles:
|
|||
|
||||
self.post={}
|
||||
|
||||
self.post=request.forms.decode()
|
||||
try:
|
||||
|
||||
self.post=request.forms.decode('utf-8')
|
||||
|
||||
except:
|
||||
|
||||
request.forms.recode_unicode=False
|
||||
self.post=request.forms.decode('utf-8')
|
||||
|
||||
if len(required_post)==0:
|
||||
required_post=self.post.keys()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue