Moji ã¢ã¸ã¥ã¼ã« æ¥æ¬èªã®æå種å¤å®ãæå種å¤æ(åè§âå ¨è§ãã²ãããªâã«ã¿ã«ããªã©)ãè¡ãã¾ãã ã¤ã³ã¹ãã¼ã«: 以ä¸ã®ã³ãã³ããå®è¡ãã¦ãã ããã $ sudo gem install moji 使ãæ¹: Ruby 1.8: $KCODE ãæå®ãã¦ãã require "moji" ãã¦ãã ããã Moji ã¢ã¸ã¥ã¼ã«ã®é¢æ°ã«æ¸¡ãæååã®æåã³ã¼ã㯠$KCODE ã¨ä¸è´ããã¦ãã ããã Ruby 1.9: ã©ã®æåã³ã¼ãã®æååã渡ãã¦ã大ä¸å¤«ã§ããã String#encoding ãæ£ããè¨å®ããã¦ãã å¿ è¦ãããã¾ããæ£è¦è¡¨ç¾ãè¿ãé¢æ°( Moji.kata ãªã©)㯠Encoding.default_internal (è¨å®ããã¦ãªãå ´åã¯UTF-8)ç¨ã®æ£è¦è¡¨ç¾ãè¿ãã¾ãããã®ä»ã®ã¨ã³ã³ã¼ãã£ã³ã°ç¨ã®æ£è¦è¡¨ç¾ã¯ Moji.kata(Encoding::SJIS) ãªã©
{{#tags}}- {{label}}
{{/tags}}