Perl ã使ã£ã¦åè§ã«ã¿ã«ãã¨å
¨è§ã«ã¿ã«ãã®å¤æãããã¹ã¯ãªããããæ¨æºã¢ã¸ã¥ã¼ã«ã® Encode.pm 㨠Unicode::Japanese 㨠Lingua::JA::Regular::Unicode ã使ã£ã¦ããããå¤æã¹ã¯ãªãããæ¸ãã¦ã¿ãã ã¾ãã¯ãæ¨æºã¢ã¸ã¥ã¼ã«ã® Encode.pm ã使ã£ãå ´åã å¤æãæåã³ã¼ã euc-jp ã§è¡ãããã«ãå¤æåã¨å¤æå¾ã« utf-8 ã¨ã®æåã³ã¼ãå¤æãè¡ãå¿
è¦ããã£ãã use Encode; use Encode::JP::H2Z; my $str_z = "Hello ï¼·ï½ï½ï½ï½.å
¨è§ã«ã¿ã«ããã¹ã 12345ãï¼ï¼ï¼ï¼ï¼"; my $str_h = "Hello ï¼·ï½ï½ï½ï½.å
¨è§ï½¶ï¾ï½¶ï¾
ï¾ï¾ï½½ï½¡ 12345ãï¼ï¼ï¼ï¼ï¼"; # å
¨è§ã«ãâåè§ã«ã Encode::from_to($str_z, "utf-8", "euc-j
{{#tags}}- {{label}}
{{/tags}}