From: 7stud -- Date: 2011-04-09T10:49:26+09:00 Subject: Re: to_yaml in utf-8 encoding The following works for me in ruby 1.8.7: # encoding: UTF-8 require 'yaml' File.open('data.db', 'w') do |f| YAML::dump("a € symbol", f) end --- contents of data.db: --- "a \xE2\x82\xAC symbol" File.open('data.db', 'r') do |f| puts YAML::load(f) end --output:-- "a € symbol" My original string contains a euro symbol, and after a roundtrip through yaml, I got the same string back. -- Posted via http://www.ruby-forum.com/.