웹 접속시 캐릭셋 확인

<?php
mysql_connect(“localhost”,”아이디”,”패스워드”) or die(“error”);
mysql_select_db(“shotonchina”) or die(“qqq”);


$query = “show variables like ‘c%’;”;
$result = mysql_query($query);


while ($row = mysql_fetch_array($result)) {
        print_r(“{$row[0]} => {$row[1]}”.”<br/>”);
}