# prepare original data for the database: $utf8_string = decode( "euc-jp", $euc_string ); # store that to the database, then some time later, # fetch it back, and convert back to euc-jp: from_to( $db_octets, "utf8", "euc-jp" ); # now, $db_octets should be readable in an euc-jp display.