PDOã§utf-8ã®æ¥æ¬èªå ¥åãã¼ã¿ï¼ãã©ã¼ã ãã¼ã¿ï¼ãå ¥ãããæååããã¦ãï¼Mysql Query Borwserä¸ã§ï¼ã åããutf-8è¨å®ã®Rubyãã¼ã¿ãæååããã¦ãªãã®ã§ãmysqlå ã§ã®è¨å®ã¯åé¡ãªãã¯ãã ãããããã£ã¦ããããã¨ããã次ã®æ¹æ³ã§ä¸çºè§£æ±ºã $pdo = new PDO("mysql:host=localhost; dbname=phptest", "root", "pass"); $stmt = $pdo -> query("SET NAMES utf8;"); $stmt = $pdo->prepare("insert into hoge(name, count)values(:name, :count)"); : $stmt = $pdo -> query("SET NAMES utf8;");ãéè¦ãphp.iniã«charseté¢ä¿ã®è¨å®ã¯ä¸è¦
{{#tags}}- {{label}}
{{/tags}}