\x{5e83}\x{544a}\x{63b2}\x{8f09} (hyphen) \x{30d3}\x{30b8}\x{30cd}\x{30b9} (space) \x{30bd}\x{30ea}\x{30e5}\x{30fc}\x{30b7}\x{30e7}\x{30f3} (space) S\x{00fc}mfin special \x{263a} ! #### \'8d\'4c\'8d\'90\'8c\'66\'8d\'da (hyphen) \'83\'72\'83\'57\'83\'6c\'83\'58 (space) \'83\'5c\'83\'8a\'83\'85\'81\'5b\'83\'56\'83\'87\'83\'93 (space) S\'fcmfin special \uc0\u9786 ! #### use Encode; $in = "\\'8d\\'4c\\'8d\\'90\\'8c\\'66\\'8d\\'da"; my $string = join( "", ( $in =~ /\\'([0-9a-f]{2})/g )); my $out = decode("cp932", pack( "H*", $string)); print "$in --> $string --> $out\n"; # assumes STDOUT is set for utf8 output