Rubyã®YAMLRuby(1.8以ä¸)ã§ã¯YAMLã©ã¤ãã©ãªãæ¨æºæ·»ä»ã©ã¤ãã©ãªã§ãã ãã®ãããYAMLãæ±ãã«ã¯ãrequire 'yaml'ãã¨ããã ãã§ãã ããã§YAML.loadï¼YAMLå½¢å¼ããèªã¿è¾¼ã¿ï¼ãYAML.dumpï¼YAMLå½¢å¼ã¸ã®åºåï¼ã ããã«æ§ã ãªãªãã¸ã§ã¯ã㧠to_yaml ã¡ã½ããã使ããããã«ãªãã¾ãã æ¥æ¬èªãå«ãYAMLãåºåããããã®ã¾ã¾ã§ã¯ãæ¥æ¬èªæååãå«ãã ãªãã¸ã§ã¯ãã YAMLããã¥ã¡ã³ãã¨ãã¦åºåããã¨ãæ¥æ¬èªé¨åããã¤ããªæååã«ãªã£ã¦ãã¾ãã¾ãã ããã§ã¯äººéã«ãèªã¿ãããã¨ããYAMLã®ç¹å¾´ãå°ãªãã§ãã # -*- coding: utf-8 -*- require 'yaml' puts YAML.dump({'ã' => 'ã'}) # ãåºåçµæã # --- # "\xE3\x81\x82": "\xE3\x81\x
{{#tags}}- {{label}}
{{/tags}}