From: Peter Tosh Date: 2009-06-13T04:19:21+09:00 Subject: Re: Remove double backslash in string "c:\\test" Justin Collins wrote: > Peter Tosh wrote: >>> >>> >> "c:\\Test" >> (rdb:1) pp @path.length >> 7 >> >> >> Niels >> > > It is not stored like that internally, that is just how it is displayed. > You do not need to do anything special to compare them. Is the above the > string from the database? I would try seeing exactly what you are > getting from the database, then output them both via the same method > (pp, p, or puts, just be consistent) and see if they are the same. Then > try comparing them. > > -Justin Did that, and it turns out the output is exactly the same. Some more testing and I found a problem with my query! Works find now. Thanks a lot, I learned something! ;) -- Posted via http://www.ruby-forum.com/.