2012-06-01, 23:15:56
morvy Wrote:thanks for your tip, but this fix doesn't work, it breaks characters "ž" -> "3/4" etc.
oops yeah thats not working at all, I must have goofed, let me fix again.
Do you have a page I can steal your utf-8 content from to test with ?
ok duh.
I have to ad the charset back in for the other function since its being removed now.
so in addition to that change add this also.
Code:
# 282
-- @$dom_document->loadHTML($contents);
++ @$dom_document->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">' . $contents);