From: Douglas Seifert Date: 2010-07-22T21:44:32+09:00 Subject: Re: syswrite changes from 1.8 to 1.9 --0016361e88328f9dc0048bf94719 Content-Type: text/plain; charset=ISO-8859-1 Sounds to me that what you thought were strings were really arrays? In 1.9, the to_s method of arrays has changed to make it look like the results of #inspect. Good luck... On Thu, Jul 22, 2010 at 5:39 AM, Tom Gregus wrote: > Hi guys, > > I have a ruby script which is scraping a website with Hpricot. I am > creating an xml and an sql file from data scraped. it was working well > under 1.8, but I have upgraded to 1.9 (because of character encoding), > but now the script writes '["' in front of every string, and the '\n' > gets written as a '\n' and not as a new line. > I am using double quotes when assigning the string to a variable. > What should I change? > > regards > Tom > -- > Posted via http://www.ruby-forum.com/. > > --0016361e88328f9dc0048bf94719--