Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 081965b

Browse files
committed
Adding parameter to .docode to ignore problem characters.
1 parent bc1a75a commit 081965b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rethinkdb/net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def serialize(self, reql_encoder=ReQLEncoder()):
118118
class Response(object):
119119
def __init__(self, token, json_str, reql_decoder=ReQLDecoder()):
120120
try:
121-
json_str = json_str.decode("utf-8")
121+
json_str = json_str.decode("utf-8","ignore")
122122
except AttributeError:
123123
pass # Python3 str objects are already utf-8
124124
self.token = token

0 commit comments

Comments
 (0)