From: 7stud -- Date: 2011-04-09T10:27:59+09:00 Subject: Re: to_yaml in utf-8 encoding The yaml docs for ruby 1.9.2 do not list a to_yaml() method. And I get this: puts RUBY_VERSION p "alex".to_yaml --output:-- 1.9.2 prog.rb:2:in `
': undefined method `to_yaml' for "alex":String (NoMethodError) To encode all strings in your source file in UTF-8, put this line at the top of your program: # encoding: utf-8 -- Posted via http://www.ruby-forum.com/.