{"id":804,"date":"2012-05-29T16:03:12","date_gmt":"2012-05-30T02:03:12","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=804"},"modified":"2012-05-29T16:03:12","modified_gmt":"2012-05-30T02:03:12","slug":"other-languages-showing-as-in-wordpress","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/other-languages-showing-as-in-wordpress\/","title":{"rendered":"Other Languages showing as ??? in WordPress"},"content":{"rendered":"
I copy-pasted some Japanese text into the WordPress editor and it shows as ????. \u00a0On another server, pasting the same japanese text shows the japanese text on the page. \u00a0No plugins seem to be affecting this. \u00a0Something with the server or WordPress configuration must be affecting displaying the foreign characters.<\/p>\n
The problem was caused by using the Fantastico automatic install from the cpanel. \u00a0When Fantastico installs wordpress all the fields in the database have a data type of “latin1_swedish_ci”. \u00a0Using this data type, characters like Japanese and Chinese are not supported. \u00a0You’ll need to change the data type of the fields to “utf8_general_ci”. \u00a0I changed post_title, post_content, and post_excerpt fields in wp_posts and it seems to be enough. \u00a0It depends how much you will have foreign characters though, you may have to change more fields. \u00a0More info can be found in the source below.<\/p>\n
<\/p>\n