Diacritic in json_encode and parsing via Android

I have question about utf8-coded text.

I have in my db text:

ščřžřýžá

which is OK on web, but when I json_encode() this text I’m getting

u0161u010du0159...

When I parse this text with Android, will it be shown like the original?

Answer

Yes. It will. Android escapes those characters. For example you can put them in your strings.xml and they will display as expected.

Leave a Reply

Your email address will not be published. Required fields are marked *