<?php function conv($str): string { $res = ''; $res .= ' SJIS: ' . mb_convert_encoding($str, 'SJIS', 'UTF-8') . "\n"; $res .= 'SJIS-win: ' . mb_convert_encoding($str, 'SJIS-win', 'UTF-8') . "\n"; return $res; } $res = ''; $res = conv('あ'); $res .= conv('~'); $res .= conv('\\'); echo $res;
You have javascript disabled. You will not be able to edit any code.