2007å¹´04æ23æ¥01:30 ã«ãã´ãªLightweight LanguagesTips perl tips - Encodeãéã使ãæ¹æ³ ã¯ã£ããè¨ã£ã¦ããã¯ãã§ã¢ã§ã¯ãªãã ã¿ããã°: Erlangã¨Perlã®é度æ¯è¼ Perlå´ã¯ï¼Encodeãé ãï¼ Encode::from_toãinplaceã§ã³ã³ãã¼ããã¦ãã¾ãããã«ï¼ç´åã«æååã³ãã¼ãããã®ãå½±é¿ãã¦ããã®ãã ãªããªããEncode::from_to()ã¯é度ã§ã¯ãªããå®å ¨æ§ã«æé©åãã¦ããããã ããããã¯ããããUTF-8ããããutf8ãã©ã°ããã£ã¦ããæååã«from_toã使ãã®ã¯ã°ããã¦ããã for(my $i = 0; $i < 0xffff; $i++) { my $str2 = $str; Encode::from_to($str2, "UTF-8", "Shift_JIS"); } ã¯åã«
{{#tags}}- {{label}}
{{/tags}}