Posted in: , ,
By Unknown 0 comments

DBIx::Class UTF8

剛剛用DBIx::Class上傳Excel的內容後發現,中文居然都變亂碼了,上網搜尋一下,原來只要在連線時設定utf8就可以了


$schema = LIB::Table->connect($dsn,$user,$pass,
    {
        mysql_enable_utf8 => 1
    }
);

Leave a Reply