in reply to How do I convert any given html to utf-8?
Try to get the encoding by any other way than guessing. Read the HTTP-Header or is there an HTML-Head-Encoding-Tag? Since many years, I worked with many charsets, there are so many things gone, till I strictly get the encoding information separately.
To transform the data fro one charset to another, the Encode module will help with things like this:
from_to($content, "iso-8859-1", "utf8");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I convert any given html to utf-8?
by isync (Hermit) on Apr 23, 2007 at 21:47 UTC |