ããã°ãã¯ï¼ ä¼ç¤¾ã§Ruby on Railsã使ã£ã¦ã¾ãããIconvã®æåã³ã¼ãå¤æã§ã¯ã¾ãã¾ããã®ã§ã¾ã¨ãã¦ããã¾ãã Iconvã§UTF8ããCP932ã«æåã³ã¼ãå¤æããéã"ã"(æ³¢ããã·ã¥)ãæååã«å«ã¾ãã¦ãã㨠Iconv::IllegalSequenceãçºçãã¾ãã ï¼å¾ããèããã¨ããã«ããã¨çµæ§æåãªè©±ã®ããã§ããï¼ Windows XP 以ä¸ãrubyã®ãã¼ã¸ã§ã³ã§ãã > ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] 以ä¸ãirbã§ç¢ºèªããçµæã§ãã > require "iconv" => true > Iconv.iconv("CP932", "UTF-8", [0xff5e].pack('U')) Iconv::IllegalSequence: "\357\275\236" f
{{#tags}}- {{label}}
{{/tags}}