ロリポップ!からhetemlにサーバー移転を行なっているものですが、文字化けが発生してしまいました。
因みにmysqlのデータは変換なしでエクスポートし、インポートしております。
?????¨??´?????‘????????
上記のような文字化けです。
Variable_name Value
character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_filesystem binary
character_set_results utf8
character_set_server utf8
character_set_system utf8
上記はmysql側の文字コード。
mb_language('uni');
mb_internal_encoding('utf-8'); //内部文字コードを変更
mb_http_input('auto');
mb_http_output('utf-8');
$con = mysql_connect('xxx','xxx','xxx') or die(mysql_error());
mysql_set_charset('utf8');
mysql_select_db('xxx') or die(mysql_error());
php側ではこのようにmysqlに接続しています。
mbstring.detect_orderutf-8
mbstring.encoding_translationoff
mbstring.func_overload0
mbstring.http_inputpass
mbstring.http_outputpass
mbstring.internal_encodingutf-8
mbstring.languageneutral
php.iniの設定です。
お恥ずかしながらサーバー契約更新まで時間があまりなく、急いでおります。
どうぞよろしくお願い致します。m(_ _)m