Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF8 encoding issues #7

Open
slemiere opened this issue Oct 21, 2011 · 0 comments
Open

UTF8 encoding issues #7

slemiere opened this issue Oct 21, 2011 · 0 comments

Comments

@slemiere
Copy link

Hello,

I have run into issues when trying to send push notifications with utf8 character in it on ruby 1.9. With 2 changes on my fork I was able to send push with utf8 content:

  1. Use the JSON generate/parse methods instead of activesupport's as activesupport would encode the utf8 char as something like \ue002e and apple doesn't support that.
  2. Use bytesize instead of size when adding the length of the payload in the notification headers as size would not take in account the real length of the UTF8 encoded characters.

Is it something that was known and is there better solution to do it ? If not would you like me to pretty it up and make a pull request ?

Anyway thank you for the gem :)

Sylvain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant