目次 |
---|
・文字列のエンコーディング ・サンプル ・autoが効かない |
<html> <body> <?php $str = "あああ"; $str = mb_convert_encoding($str,"Shift_JIS","auto"); echo "<div>" . $str . "</div>"; ?> </body> </html>
mb_convert_encoding($str,"Shift_JIS","ASCII,JIS,EUC-JP,SJIS");
mbstring.detect_order = auto