文字エンコーディング
// SJIS-winのチェック.
if (! mb_check_encoding($name, 'SJIS-win')) {
// エラー.
}
// SJIS-win -> UTF-8の変換
$name = mb_convert_encoding($name, 'UTF-8', 'SJIS-win');
Go to list of users who liked
More than 5 years have passed since last update.
// SJIS-winのチェック.
if (! mb_check_encoding($name, 'SJIS-win')) {
// エラー.
}
// SJIS-win -> UTF-8の変換
$name = mb_convert_encoding($name, 'UTF-8', 'SJIS-win');
Register as a new user and use Qiita more conveniently
Go to list of users who liked