sending push in chinese using server api

Hello,

I have problem to send chinese(traditional) on server push or web service

when i use web service  5GHynTV.png

d56sTc0.png

but the message not show chinese(traditional)  Yd1CRzU.png

this what the problem when i use web service 


then i use server api (i attach my java file)

i can send english but not chinese , i write in java

i have add the cod

con.setRequestProperty(“Accept-Language”,“zh-Hant”); 

and set jsonBody like 

String strJsonBody = “{”

  • ““app_id”: “2328a999-3b35-4a20-bddb-98a72bfdd37a”,”

  • ““included_segments”: [“All”],”

  • ““data”: {“foo”: “bar”},”

  • ““headings”: {“en”: “Mineweb”,“zh-Hant”: “你的數位生命”},”

  • ““contents”: {“en”: “Mineweb”,“zh-Hant”: “你的數位生命”},”

  • ““url”: “www.mineweb.tw”,”

  • ““android_led_color”: “FF0000FF”,”

  • ““isAnyWeb”: “true”” + “}”;

but the message just show Mineweb not 你的數位生命

can u tell me how to resolve this problem?

thx

Hi. I took a look and I see that our system has detected your device’s language as simplified Chinese (zh-Hans).

You can check the language of a device in our system by going to the following URL:

https://onesignal.com/api/v1/players/[the user’s OneSignal ID]

In your case it would be:

https://onesignal.com/api/v1/players/842a30c2-66f8-4ecc-ba41-6357c75a78a9

heAAmQ3.png

thanks, i have resolved the problem

ur service is awesome, friendly to use it 

but my location is Taiwan(zh-Hant) not Chinese(zh-Hans) ,Identification on zh-Hans and zh-Hant have something wrong,

suggest ur service can tune the language Identification about that

however, thank u support and awesome service

thx

Hi. I took a look and I see that our system has detected your device’s language as simplified Chinese (zh-Hans).

You can check the language of a device in our system by going to the following URL:

https://onesignal.com/api/v1/players/[the user’s OneSignal ID]

In your case it would be:

https://onesignal.com/api/v1/players/842a30c2-66f8-4ecc-ba41-6357c75a78a9

heAAmQ3.png

thanks, i have resolved the problem

ur service is awesome, friendly to use it 

but my location is Taiwan(zh-Hant) not Chinese(zh-Hans) ,Identification on zh-Hans and zh-Hant have something wrong,

suggest ur service can tune the language Identification about that

however, thank u support and awesome service

thx