I’ve done it but it doesn’t work.
I’ve found this example http://forums.coronalabs.com/topic/47669-reading-arabic-text-from-mysql-via-json-gives/?p=246615
I’ve added this mysql_query(“SET NAMES ‘utf8’”); to my php and now the ??? transformed to encoding like this \u0443\u0440\u043e.
1)There are other steps in the example. For example, collocate table in the Mysql file, I’ve tried but I don’t know how to do it exactly. My table:
CREATE TABLE `dle_category` ( `id` smallint(5) NOT NULL AUTO\_INCREMENT, `parentid` smallint(5) NOT NULL DEFAULT '0', `posi` smallint(5) NOT NULL DEFAULT '1', `name` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO\_INCREMENT=51;
Where should I put something like DEFAULT COLLATE utf8_general_ci; ?
2)Another question: in the example I mentioned some code shoul be added to php file
\<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /\>
when I add it and run the file, it generates an error. How should it be added?
Sorry, for all the questions, I’m a real noob in php and Mysql:(