Non-ASCII characters in notifications do not display correctly

I am using the REST API on my PHP server. While ASCII characters in notifications sent via the REST API are displayed correctly, Japanese and Chinese characters aren’t. For example, when I tried to send the following message:

測試
これはテストです

The following shows up instead of the actual message.

http://m.imgur.com/9o3rUeY

How can this problem be solved? Or is this a bug?

Thanks

You have to make sure the PHP scripts are supporting UTF-8 characters

I took a look at your OneSignal account and I am seeing the same string value in our system that is in your screenshot. I believe Rob is correct that you might be missing the setting of UTF-8 in your PHP code. Also to debug the issue I recommend printing out the full JSON right before sending it to our API to see if it looks correct there.

Thanks.

Thank you Rob Miracle and jkasten for your replies.

Changing

;default\_charset = "iso-8859-1"

into:

default\_charset = "utf-8"

in php.ini worked for me.  The message now displays correctly in the intended characters.

You have to make sure the PHP scripts are supporting UTF-8 characters

I took a look at your OneSignal account and I am seeing the same string value in our system that is in your screenshot. I believe Rob is correct that you might be missing the setting of UTF-8 in your PHP code. Also to debug the issue I recommend printing out the full JSON right before sending it to our API to see if it looks correct there.

Thanks.

Thank you Rob Miracle and jkasten for your replies.

Changing

;default\_charset = "iso-8859-1"

into:

default\_charset = "utf-8"

in php.ini worked for me.  The message now displays correctly in the intended characters.