From: brabuhr@... Date: 2011-03-30T11:16:24+09:00 Subject: Re: Encoding issues when parsing HTML in 1.9 On Tue, Mar 29, 2011 at 9:45 PM, ctdev wrote: > However now I'm trying to do simple string substitution with gsub() > and am getting the error: > >  invalid byte sequence in UTF-8 > > An example of where this is bombing is the word "PROT\xC9GÉ" as parsed > by Nokogiri. What is the encoding of your input HTML file?