Have you tried to set encoding for page something like this: 
page.encoding = 'UTF-8'?

Jarmo

John Schmitz wrote:
> If anyone comes across this problem, this is how I fixed it. Found a 
> method online and made some minor changes and additions. I just pass the 
> problem strings through this and it gives me back strings that don't 
> have issues.
> 
> def fix_quotes(c)
>       c.gsub!(/\342\200(?:\234|\235)/,'"')
>       c.gsub!(/\342\200(?:\230|\231)/,"'")
>       c.gsub!(/\342\200\223/,"-")
>       c.gsub!(/\342\200\246/,"...")
>       c.gsub!(/\303\242\342\202\254\342\204\242/,"'")
>       c.gsub!(/\303\242\342\202\254\302\235/,'"')
>       c.gsub!(/\303\242\342\202\254\305\223/,'"')
>       c.gsub!(/\303\242\342\202\254"/,'-')
>       c.gsub!(/\342\202\254\313\234/,'"')
> end

-- 
Posted via http://www.ruby-forum.com/.