Character Encoding Issue
-
Found that the plugin was causing strange character encoding issues. To fix I added these two lines to function.php (websitez_filter_advanced_page function)
Here is the original code…
/* Filter content for an advanced mobile device */ function websitez_filter_advanced_page($html){ if (class_exists('DOMDocument')) { try{ //Resize the images on the page $dom = new DOMDocument(); $dom->loadHTML($html); .....
Here is what I added
/* Filter content for an advanced mobile device */ function websitez_filter_advanced_page($html){ if (class_exists('DOMDocument')) { try{ //Resize the images on the page $html = mb_convert_encoding($html, 'utf-8', mb_detect_encoding($html)); $html = mb_convert_encoding($html, 'html-entities', 'utf-8'); $dom = new DOMDocument(); $dom->loadHTML($html); ....
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Character Encoding Issue’ is closed to new replies.