Skip to content

Commit

Permalink
Merge pull request #37 from exister/master
Browse files Browse the repository at this point in the history
Support for languages other than English
  • Loading branch information
Samuel Sutch committed Jan 8, 2013
2 parents c47645c + d8b1b67 commit a56912f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -8,3 +8,5 @@ build/**
*.pyc
*.egg-info
dist/**
.idea
atlassian-ide-plugin.xml
2 changes: 1 addition & 1 deletion pyapns/server.py
Expand Up @@ -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):
Expand Down

0 comments on commit a56912f

Please sign in to comment.