サイト文字化けでやったこと
上から面倒くさくない順番で
1.Apacheのhttpd.confで対処する場合
LanguagePriority 内の ja を先頭にもってく
AddDefaultCharset Shift_JIS
2. .htaccessで対処する場合
AddType "text/html; charset=Shift_JIS" html
とか入れる。
3.HTMLソース内で対処する場合
ヘッダに
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> (<や>は実際は半角で)
とか入れる。
4. cgiソース内で対処
print "Content-type: text/html\n\n";
を
print "Content-type:text/html;charset=shift_jis\n\n";
にしたりなんかする。