ApnsPHP: utf-8 and "Internal error" when push?

95 views Asked by At

after the translation of website to utf-8, push no longer sent it gets when i send push: "Internal error (127 by written in instead of 105 bytes)"

If I try to send in Latin, i received 3 same push-es (i test it on my iphone) and writes its an error.

If I try to send a Cyrillic symbols at UTF-8, then I get an error and the push does not come.

If in the Push.php file I change the line

$nLen = strlen ($aMessage ['BINARY_NOTIFICATION']);

to $nLen = mb_strlen($aMessage ['BINARY_NOTIFICATION'], 'latin1'); push in Latin comes successfully and there are no errors

Cyrillic does not come (but does not show errors)

$ nLen = mb_strlen ($ aMessage ['BINARY_NOTIFICATION'], 'utf-8');

Does not help. how to be?

0

There are 0 answers