1 | $hoge = mb_convert_encoding( $hoge , 'UTF-8' , 'auto' ); |
元のエンコードは「auto」が便利
Unable to detect character encodingの警告が出る場合は
1 | mb_language( "Japanese" ); |
2 | $hoge = mb_convert_encoding( $hoge , 'UTF-8' , 'auto' ); |
1 | $hoge = mb_convert_encoding( $hoge , 'UTF-8' , 'auto' ); |
元のエンコードは「auto」が便利
Unable to detect character encodingの警告が出る場合は
1 | mb_language( "Japanese" ); |
2 | $hoge = mb_convert_encoding( $hoge , 'UTF-8' , 'auto' ); |