*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
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);
- // Get template instance
+ // Set UTF-8
+ xml_parser_set_option($xmlParser, XML_OPTION_TARGET_ENCODING, 'UTF-8');
+
+ // Get instance (we need this :( )
$templateInstance = $this->getTemplateInstance();
// Set object