public function parseXmlContent ($content) {
// Convert all to UTF8
if (function_exists('recode')) {
- $content = recode("html..utf8", $content);
+ // Recode found, so use it
+ $content = recode('html..utf8', $content);
} else {
// @TODO We need to find a fallback solution here
$this->partialStub('Cannot find recode extension!');
// Force case-folding to on
xml_parser_set_option($xmlParser, XML_OPTION_CASE_FOLDING, true);
+ // Set UTF-8
+ xml_parser_set_option($xmlParser, XML_OPTION_TARGET_ENCODING, 'UTF-8');
+
// Get template instance
$templateInstance = $this->getTemplateInstance();