From: Markus Fischer Date: 2010-09-27T03:51:37+09:00 Subject: Re: Ruby, Unicode, and HTML Entities Problem On 26.09.2010 17:54, Mr Peepers wrote: > Here's an example of what the parser does NOT like and throws errors > like what I posted above: > Ministerio P炭blico de la Federaci坦n > > But just for fun, I changed the string to be this: > Ministerio P炭blico de la Federaci坦nnn > > ...and it loads/parses, no issue. > > I can't really post all the code due to company privacy. No one wants your company data, but above you pasted a problematic snippet. Based on this, can't you create a minimal test case from it? I was having similar problems with Nokogiri until I figured I need to set encoding manually because the automatic detection failed for some reason. But it's premature to suggest anything without a smaller/real test case. - Markus