diff --git a/pyapns/model.py b/pyapns/model.py index ce21f2b..db75621 100644 --- a/pyapns/model.py +++ b/pyapns/model.py @@ -232,8 +232,8 @@ def binaryify(t): 'token "{}" could not be decoded: {}'.format(str(t), str(e) )) - encoded_payload = json.dumps(self.payload, separators=(',', ':'), - ensure_ascii=False).encode('utf-8') + encoded_payload = json.dumps(self.payload, + separators=(',', ':')).encode('utf-8') return structify(binaryify(self.token), self.internal_identifier, self.expiry, encoded_payload)