drpph80800 2015-11-09 15:06
浏览 55
已采纳

APNs来自俄语的unicode消息

I have a problem with the Cyrillic alphabet in the message, the server is written in php, the output is the following string of 285 characters.

string(285) "{"aps":{"alert":"\u041f\u0440\u043e \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Redis \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0445\u043e\u0440\u043e\u0448\u0430\u044f","badge":0,"sound":"default","id":"100","category":"nat"}}"

When I write it on the English I get a string 180 characters. Because this message is not sent to the server Apple, since the size of the format. I do not know where the correct message.

  • 写回答

1条回答 默认 最新

  • dongmoyu0336 2015-11-09 21:09
    关注

    i found solution json_encode($payload, JSON_UNESCAPED_UNICODE);

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器