duccio/ApnsPHP — pull request #33 by pilot34 (2013-06-26 22:21:01+00:00)
Title: Fix to work with cyrillic letters

I had problem on one server with messages in push, when one symbol is more than one byte. There was error xxx bytes instead of yyy bytes. It was fixed with this patch.

It is very strange, I think on another server ApnsPHP was working without patches. Can it be because of default server encoding?

I'm obj-c developer, not good in php, so I'm not very sure, that my fix is good for all cases, but I think, that mb_strlen with '8bit' is better to right counting of length in bytes. Isn't it?