mysql - Which is the best character encoding for Japanese language for DB, php, and html display? -


I just want to know about language change for Japanese, 1) Who is the best encoding for database mysql 2 ) Which / Can I print in that HTML page? thank you in advanced.

UTF-8 without any doubt Make everything UTF-8 To insert UTF-8 encoded text on your web page, use it in your head tag:

  & lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" />  

For MySQL, its Mary. Put the following in the Cff file:

  [mysqld] collation_server = utf8_unicode_ci character_set_server = utf8 default-character -set = utf8 default-collation = utf8_general_ci collation-server = utf8_general_ci  

If you are getting garbage from the database from queries executed by your application, then you may need to execute these two questions before retrieving your Japanese text: < / P>

  SET NAMES utf8 SET CHARACTER SET utf8  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -