Skip to content
Browse files

support for languages other than English;

  • Loading branch information...
1 parent c47645c commit d8b1b678e2f1a501aaf31cb379756611f30fe407 @exister exister committed Dec 17, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +1 −1 pyapns/
2 .gitignore
@@ -8,3 +8,5 @@ build/**
2 pyapns/
@@ -327,7 +327,7 @@ def encode_notifications(tokens, notifications):
if type(notifications) is dict and type(tokens) in (str, unicode):
tokens, notifications = ([tokens], [notifications])
if type(notifications) is list and type(tokens) is list:
- return ''.join(map(lambda y: structify(*y), ((binaryify(t), json.dumps(p, separators=(',',':')))
+ return ''.join(map(lambda y: structify(*y), ((binaryify(t), json.dumps(p, separators=(',',':'), ensure_ascii=False).encode('utf-8'))
for t, p in zip(tokens, notifications))))
def decode_feedback(binary_tuples):

0 comments on commit d8b1b67

Please sign in to comment.
Something went wrong with that request. Please try again.