MySQLã®ãã¼ã¿ãæååããã¾ããé常ã¯ãmy.confãä¿®æ£ãã¦è§£æ±ºãã¾ãã PHPã§MySQLããåãåºãããã¼ã¿ãæååãããæã®è§£æ±ºæ¹æ³ - ãã®ããã°ã¯è¨¼æã§ããªãã ã¨ããããå ±ç¨ãµã¼ãã¼ã®å ´åãmy.confã触ãã¾ãããããã§ãSET NAMESã使ãã¾ããPHPã ã¨ããããªã«ã³ã¸ã mysql_query('SET NAMES utf8'); ã¨ããããã¨ããããSET NAMESã¯ä½¿ã£ã¦ã¯ãããªããããã§ããSQLã¤ã³ã¸ã§ã¯ã·ã§ã³ã®èå¼±æ§ãããã®ã ã¨ãã no title ãã®å¯¾å¿çã§ããPHPã ã¨ããããªã«ã³ã¸ã mysql_set_charset('utf8'); 注æ: æåã»ãããå¤æ´ããã«ã¯ãã®æ¹æ³ã使ããã¨ãæ¨å¥¨ãã¾ãã mysql_query() 㧠SET NAMES .. ãå®è¡ããæ¹æ³ã¯ãå§ãã§ãã¾ããã PHP: mysql_set_charse
{{#tags}}- {{label}}
{{/tags}}