From: 7stud -- Date: 2008-05-02T18:19:57+09:00 Subject: Re: Searching for latin/umlaut characters in string John Butler wrote: > Xavier Noria wrote: >> On Thu, May 1, 2008 at 10:45 PM, John Butler >> wrote: >> >>> Ive read up a bit about uicode strings and the issues with rails after i >>> tried to save some data which contained an umlaut character. I got the >>> following error below when searching for a name that contained the >>> character 辿. >>> >>> Unclosed quotation mark after the character string ') >> >> Sounds like an encoding issue with the source code itself. Are you >> writing that "辿" in the program? If yes, is your editor configured to >> write UTF8? > > No the string is coming in via a csv file. str = "My cafe\xcc\x81 is good." puts str if str.include?("cafe\xcc\x81") puts "yes" else puts "no" end -- Posted via http://www.ruby-forum.com/.