ã¯ã¦ãã®ã»ãã§ã¡ããã£ã¨æ¸ãããã ãã©ã Mail::Sendmail ã§ã¡ã¼ã«éä¿¡ã®ä»¥ä¸ã®ã³ã¼ãã«ã¤ãã¦ã use Encode; use utf8; my $subject = "ãã¹ã"; my $message = "ãã¹ãã§ããã»ãã»ãã"; foreach my $str ( $subject, $message ) { utf8::encode($str); Encode::from_to( $str, "utf8", "iso-2022-jp" ); } ããã§utf8::encode => Encode::from_toããã®ã¯åé· encode('iso-2022-jp', $str); ã ãã§ãï½ã use utf8ãã¦ãªããã°ï¼ã§ãã½ã¼ã¹ã®æåã³ã¼ããutf8ã§ããã°) Encode::from_to( $str, "utf8", "iso-2022-jp" )
{{#tags}}- {{label}}
{{/tags}}