我曾经试图发送一个带有特殊字符(如下)的 FCM 通知:
curl --header "Authorization: key=Auth-CODE"
--header Content-Type:"application/json
for JSON; application/x-www-form-urlencoded;charset=UTF-8"
-d '{"to":"token","notification":{"title":"München",
"body":"Test Content with äöü",
"icon":"images/icon-192x192.png"}}'
https://fcm.googleapis.com/fcm/send
我会收到如下通知:
Mnchen
Test Content with
请问有人能指引我正确的方向吗? 非常感谢!
编辑
客户端是一个浏览器,因为该应用程序是一个web应用程序。