Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for languages other than English;

  • Loading branch information...
commit d8b1b678e2f1a501aaf31cb379756611f30fe407 1 parent c47645c
Exister exister authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  .gitignore
  2. +1 −1  pyapns/server.py
2  .gitignore
View
@@ -8,3 +8,5 @@ build/**
*.pyc
*.egg-info
dist/**
+.idea
+atlassian-ide-plugin.xml
2  pyapns/server.py
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):
Please sign in to comment.
Something went wrong with that request. Please try again.