android - Passing Unicode string through JSON request -



android - Passing Unicode string through JSON request -

mysql info has text unicode inside, \uxxxx . how can display unicode in textview

using json_encode($var) in php, resulting \\uxxxx in json output

now, textview displayin unicode \\uxxxx instead of symbol. how can display unicode symbol in textview.

open php file notpad++, encoding menu select "encode in utf-8 without bom" save php file.

then send final result this:

$json = json_encode($data, json_unescaped_unicode); header('content-type: application/json; charset=utf-8'); echo $json;

this way characters way , won't them \uxxxx.

android json

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -