SJIS-win→SJIS
<?php $str = "あアア①㈱㌦〜" . pack('C*', 0xF8, 0x9F); echo mb_convert_encoding($str, 'SJIS-win', 'SJIS-win') . "\n"; echo mb_convert_encoding($str, 'SJIS', 'SJIS') . "\n"; echo mb_convert_encoding($str, 'SJIS', 'SJIS-win') . "\n"; echo mb_convert_encoding($str, 'SJIS-win', 'SJIS') . "\n";
あアア①㈱㌦〜[絵文字] あアア①㈱㌦〜? あアア???〜? あアア①㈱㌦〜?
あれ?