Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -lw
    
    $a="à"; # A high latin1 character, doesn't even need unicode
    ...
    $a equals $b but $b is internally in UTF8
    $b Normal substr: 224
    $b Bytes  substr: 195
    
  2. or download this
    use Encode;
    $octets = encode("utf8", $string);