php - how to display unicode characters using jquery ajax? -


Here's the background I use the php, ajax, and jquery in the following code to retrieve unicode characters from a mysql server I am trying. $ .post ("test.php", {tableName: A_table}, function (data) {$ .each ($ (data), function (key, value) {in performance data Do not display a UL list and strange unicode characters, such as 00101C}};

Based on the code above, how do I display unicode characters.

you charset the header of your response to UTF-8 or Other useful charsets for your needs), or before you all Canonic characters change on the server side with the

example (taken from the manual page)

  & lt; Php $ text = "A strange string may be passed, maybe some ø, Ã, with a ¥ characters."; Foreach (as mb_list_encodings ($ chr) {echo mb_convert_encoding ($ text, 'UTF-8', $ chr). ":". $ Chr. "& Lt; br & gt;";}? & Gt; < / Code>   

Comments