I love character encoding!
Tonight’s goal: Make a simple PHP class.
- Input: a URL pointing to an HTML document.
- Output: a UTF-8 version, regardless of what encoding it’s really in.
Sounds easy, right?
mb_detect_encoding and mb_convert_encdoing plus a bit string magic. Shouldn’t be that complex - love to see your implementation.
Reblogged from Marco's stuff