From: 7stud -- Date: 2009-02-24T01:34:35+09:00 Subject: why does . match non-ascii chars? str = "abcd辿f " result = str.gsub(/./n) do |match| puts "%%%02X" % match[0] end puts --output:-- %61 %62 %63 %64 %C3 %A9 %66 Doesn't the 'n' option say to match ascii? For what it's worth, I get the same result without the 'n' option. -- Posted via http://www.ruby-forum.com/.