ä»å°Rubyä¼è°01ã§çºè¡¨ããå 容ã®M17Nã®é¨åãã¾ã¨ãã¾ããã ãããã1.9ã使ã人ã®åèã«ãªãã°ã¨æãã¾ãã éè¦ãªã㨠Stringã®ã¤ã³ã¹ã¿ã³ã¹ã Encodingæ å ±ãæã¤ããã«ãªãã¾ãã å©ç¨è ã¯å¸¸ã«ãã®ãã¨ãæèããå¿ è¦ãããã¾ãã 1.9ã®Stringã«ã¯æ¬¡ã®ãããªã¡ã½ããã追å ããã¦ãã¾ã String#encoding ç¾å¨ã®encodingãè¿ãã¾ãã "çã¿ã³".encoding => #<Encoding:UTF-8> String#force_encoding(encoding) ãã¼ã¿ã¯ãã®ã¾ã¾ã§ãencodingæ å ±ã®ã¿å¤æ´ãã¾ãã ãã¤ãåèªä½ã¯å¤æ´ããã¾ããã ç ´å£çã«å¤æ´ããã¾ãã "çã¿ã³".force_encoding("EUC-JP") => "\xE7\x89\x9B\xE3\x82??\x83\xB3" String#encode(enc
{{#tags}}- {{label}}
{{/tags}}