å¤ãã·ã¹ãã ã®ããã« EUC-JP ã§ãã¡ã¤ã«æ¸ãåºããããå¿ è¦ãããå ´åï¼å é¨ã¨ã³ã³ã¼ãã£ã³ã°ã¯ UTF-8 ã ã£ãã®ã§ï¼ä»ã¾ã§æ示çã«æ¸ãè¾¼ãæååã EUC-JP ã«å¤æãã¦ããæ¸ãè¾¼ãã§ããï¼ ã§ãï¼æ¬¡ã®ããã«ã¢ã¼ãã§ã¨ã³ã³ã¼ãã£ã³ã°ãæå®ããã¨èªåã§ãã®å¤æããã£ã¦ããããããï¼ # coding: UTF-8 # UTF-8 ãã EUC-JP ã¸å¤æãã¦æ¸ãè¾¼ãã§ãããï¼ File.open("hoge-euc", "w:EUC-JP:UTF-8") do |f| f << "ãã¡ã¤ã«ã®ä¸èº«" end
{{#tags}}- {{label}}
{{/tags}}