UTF-8ããSJISã«å¤æããæã«ã¯Shift-JISç³»ã¨ã³ã³ã¼ãã®ç¨®é¡ã ããããªãã¦UNICODEæ£è¦åãæ°ã«ããªãã¨ãã¡ã¨ãã話 å©ç¨ã·ã¼ã³ UTF-8ã§è¨è¿°ãããããã¹ããShift-JISã¨ã³ã³ã¼ãã«å¤æããæ©ä¼ã¯ããã¾ãã UNICODEã§è¡¨ç¾ã§ããæåã®ç¨®é¡ã®æ¹ãShift-JISã«æ¯ã¹ã¦å§åçã«åºãã®ã§ãã¹ã¦ã®æåãå¤æã§ããããã§ã¯ããã¾ãããããããã¯å¤æã§ãã¦ãããããã¨ãããã®ã¾ã§ãã¼ãè½ã¡ãã±ã¼ã¹ã¯å¤æ°ããã¾ãã 以ä¸ãã¼ãè½ã¡ãä¾ã¨ãã®å¯¾å¿ã示ãã¾ãã ãµã³ãã«ã³ã¼ã ã¾ãã¯ãµã³ãã«ã³ã¼ãã rubyã§è¨è¿°ãã¦ãã¾ãããåçã¯ã©ã®è¨èªã§ãåãã§ãã str = "ãï½ãâ é«å³¶å±ããããã¯ã" sjis = str.encode(Encoding::Shift_JIS, :invalid => :replace, :undef => :replace) File.
{{#tags}}- {{label}}
{{/tags}}