in reply to Re: How do I convert any given html to utf-8?
in thread How do I convert any given html to utf-8?

Actually I already looked into Encode::Guess but I couldn't believe that either this (guessing) or step by step iterating though the http header, meta-tags etc. was the solution. Both ways (the first insecure, the second tedious) looked awful.

Is the second option really the only option to get it 98% right?

Uh, oh. I just remembered that there is this HTML::Parser bug with utf8 as well...

BTW: Still, any hint's on what LWP:UserAgent's decoded_content() actually does other than just handling gzip compression silently?
  • Comment on Re^2: How do I convert any given html to utf-8?