| 1987 | Perl 1.000 |
| 1994 | Perl 5.000 |
| 1995 | jcode.pl |
| 1999 | Jcode.pm |
| 2000 | Perl 5.6.x |
| 2002 | Perl 5.8.x |
| Shift_JIS | Most widely used | 8a bf 8e 9a |
| EUC-JP | Most elegant | b4 c1 bb fa |
| ISO-2022-JP | SMTP-safe | 1b 24 42 34 41 3b 7a 1b 28 42 |
| UTF-8: | New kid on the block | e6 bc a2 e5 ad 97 |
require "jcode.pl";
while(<>){
jcode::convert(*_, 'euc', 'sjis');
print;
}
while(<>){
print Jcode->new($_, 'sjis')->euc;
}
use Encode;
while(<>){
from_to($_, 'shiftjis', 'euc-jp');
print;
}
binmode STDIN => ":encoding(shiftjis)"; binmode STDOUT => ":encoding(euc-jp)"; print while(<>);
binmode STDIN => ":utf8";
binmode STDOUT => ":utf8";
while(<STDIN>){
s/(.)/[$1]/g; print;
};