â [ruby] Rubyã§UTF8-MACãUTF-8ã«ç´ã ãã¬ãã¥ã¼.appããMacVimã«ã³ãããããããã¯ããã«ãããã¯ãããã«ãã¿ããã«ãªã£ã¦ãã¾ã£ã¦å°ã£ãã®ã§ã Rubyã®ã¯ã³ã©ã¤ãã§ç´ãã¦ã¿ãã $ ruby -e 'print File.read(ARGV[0], encoding: "utf8-mac").encode("utf-8")' a.txt > b.txt Ruby(>= 1.9)便å©ã â [ruby] Rubyã§Magic commentãå¿ è¦ãªãã¡ã¤ã«ãåæãã Ruby 2.0ããã¹ã¯ãªããã¨ã³ã³ã¼ãã£ã³ã°ã®ããã©ã«ããUTF-8ã«ãªã£ãã®ã§ãæååãªãã©ã«ã«æ¥æ¬èªã使ãã¨ãããã¸ãã¯ã³ã¡ã³ããæ¸ããªãã¦è¯ããªãã¾ããã â¦ã¨ããã®ã¯å¬ããå¤æ´ãªãã§ãããããããã¨ä»åº¦ã¯ãæå ã®Ruby 2.0ã§ã¯åãã¦ããã©ããµã¼ãã®Ruby 1.9.3ã§åããã
{{#tags}}- {{label}}
{{/tags}}