Skip to content

Commit

Permalink
support for languages other than English;
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznetsov Mikhail committed Dec 17, 2012
1 parent c47645c commit d8b1b67
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 d8b1b67

Please sign in to comment.