Help for this page

Select Code to Download


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