Skip to content

Commit a56912f

Browse files
author
Samuel Sutch
committed
Merge pull request #37 from exister/master
Support for languages other than English
2 parents c47645c + d8b1b67 commit a56912f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ build/**
88
*.pyc
99
*.egg-info
1010
dist/**
11+
.idea
12+
atlassian-ide-plugin.xml

pyapns/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def encode_notifications(tokens, notifications):
327327
if type(notifications) is dict and type(tokens) in (str, unicode):
328328
tokens, notifications = ([tokens], [notifications])
329329
if type(notifications) is list and type(tokens) is list:
330-
return ''.join(map(lambda y: structify(*y), ((binaryify(t), json.dumps(p, separators=(',',':')))
330+
return ''.join(map(lambda y: structify(*y), ((binaryify(t), json.dumps(p, separators=(',',':'), ensure_ascii=False).encode('utf-8'))
331331
for t, p in zip(tokens, notifications))))
332332

333333
def decode_feedback(binary_tuples):

0 commit comments

Comments
 (0)