Help for this page

Select Code to Download


  1. or download this
    $string = decode("euc-jp", $string);
    
  2. or download this
    $char_string = decode("euc-jp", $jp_bytes);
    $utf8_bytes = encode("utf8", $char_string);
    
  3. or download this
    $utf8_bytes = encode("utf8", decode("euc-jp", $jp_bytes));
    
  4. or download this
    $utf8_bytes = from_to($jp_bytes, "euc-jp", "utf8");
    
  5. or download this
    $char_string = decode("euc-jp", $jp_bytes);
    binmode FH, ":encoding(euc-jp)";
    print FH $char_string;