Permalink
Browse files

Merge pull request #37 from exister/master

Support for languages other than English
  • Loading branch information...
2 parents c47645c + d8b1b67 commit a56912f3b83b72c497e716c34ed6b5fda6bd21f3 Samuel Sutch committed Jan 8, 2013
Showing with 3 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +1 −1 pyapns/server.py
View
@@ -8,3 +8,5 @@ build/**
*.pyc
*.egg-info
dist/**
+.idea
+atlassian-ide-plugin.xml
View
@@ -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 a56912f

Please sign in to comment.