Skip to content

Commit

Permalink
Support languages other than English
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyao committed Apr 19, 2013
1 parent da23e3e commit 548a231
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyapns/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ def binaryify(t):
'token "{}" could not be decoded: {}'.format(str(t), str(e)
))

encoded_payload = json.dumps(self.payload, separators=(',', ':'))
encoded_payload = json.dumps(self.payload, separators=(',', ':'),
ensure_ascii=False).encode('utf-8')
return structify(binaryify(self.token), self.internal_identifier,
self.expiry, encoded_payload)

Expand Down

0 comments on commit 548a231

Please sign in to comment.