[PHP-users 35571] Re: 意図しない文字置換について

NiwaNobuo niwa @ kobuta.com
2011年 5月 19日 (木) 10:44:58 JST


 にわです。
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
と入れる・・・というのは大きくはずしてますか?

>置換結果に関する相談です。
>
>$str = '樫';
>$str=str_replace('~','〜',$str);
>echo $str;
>
>を実行すると、
>
>Shift-JIS→ 梶`
>UTF-8→ 讓ォ


PHP-users メーリングリストの案内