Infinity Dimensions Now Rebooting.
Infinity Dimensions Now Rebooting.
<?php require_once'DB.php'; $username = "dbuser"; $password = "dbpass"; $host     = "dbhost"; $database = "dbname"; $db = DB::connect("mysql://$username:$password@$host/$database"); if (DB::isError( $db )) { die($db->getMessage()); } // SET NAMES ã¯ã¨ãªã®çºè¡ $sql = "SET NAMES utf8"; $result = $db->query($sql); ?>
Webãµã¤ãå¶ä½ãPHPã¨ãMySQLã¨ãããã°ã©ã å¯ããsymfonyãCakePHPãPerlã¨å解交æ¸ä¸ã èªåã¯ééããäºç¡ããã©ãä»å¾ã®åèã«ã PHPã®å é¨å¦çã®æåã³ã¼ããEUCãã¼ã¹ãªçºãUTF-8ã§ä½ã£ã¦ããã¨ãã©ã¼ã å¤ãæååããã¦ãã¾ãäºããããããã çµæ§å¤ããã©ãã«ã®æ¨¡æ§ã 解決çã¨ãã¦ã¯ãå é¨å¦çã®æåã³ã¼ããUTF-8ã«å¤æ´ãã¦ããåãåãæ§ã«ããã¨è¯ãã èªåã®çµé¨ã§æ©ã¾ãããã®ã¯ãDBã®æååãã DBãä¸ããæ§ç¯ããå ´åã¯æåããUTF-8ã§ä½ã£ã¦ããã°è¯ããã©ããµã¼ãã®ç§»è»¢ã ã£ããæ¢åã®ãã¼ã¿ã使ã£ãããã°ã©ã ãçµã¿ã¨ãã¯æååãã大å¤ãEUC-JPãå¤ãã ãã®æã¯ä»¥ä¸ã®ã³ã¼ãã§æåã³ã¼ããæå®ããã¯ã¨ãªãçºè¡ãã¦ä¹ãè¶ããããã <? mb_language("uni"); mb_internal_encoding("utf-8"); /
mysql> status; -------------- mysql Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3 Connection id: 36 Current database: staff2006 Current user: maiha@localhost SSL: Not in use Current pager: lv Using outfile: '' Using delimiter: ; Server version: 4.1.20 Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: latin1 Client char
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}