Scott Fortmann-Roe
2006-May-17 10:32 UTC
[Rails] Rubyful-soup and ''malformed utf-8 character''
Hi Guys, I am trying to use Rubyful-soup for a simple webpage modification project. The issue is that when I try to display the modified html (generated by @soup.to_s) using RJS, an error pops up saying ''malformed utf-8 character''. I can fix this by using @soup.to_s.toutf8 but that causes some of the characters in the document to be messed up (ie ''  becomes %nbsp''). Any ideas how to fix this, (or alternativly a different html parser, rubyful soup seems the easiest one out there to use. Thanks a lot, Scott