Shift_JISで2バイト目が 0x5C だったため文字化けしてしまった文字列を復元してみた
タイトルながい。
% php <?php $str = mb_convert_encoding('箔V', 'Shift_JIS'); echo bin2hex($str) . "\n"; ?> 949356 % php <?php echo mb_convert_encoding(chr(0x94).chr(0x5c).chr(0x93).chr(0x56), 'UTF-8', 'Shift_JIS'); ?> 能天