Help for this page

Select Code to Download


  1. or download this
    $octets = encode("utf8", $string);
    
  2. or download this
    use Encode qw( encode );
    
    ...
    $octets = encode("utf8", $string);
    print("\$octets is ", length($octets), " bytes long: ");
    print(octet_dump($octets),  "\n");
    
  3. or download this
    $string is 1 chars long: "\x{3C5}"
    $octets is 2 bytes long: CF 85