Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    $hex =~ s/\\x(..)/chr hex $1/ge;
    
    say $korean eq $hex ? 'Same' : 'Different';
    
  2. or download this
    $korean =~ s/(.)/'\\x' . sprintf '%x', ord $1/ge;
    
  3. or download this
    utf8::encode($korean);