1
Issues / Re: I intend to buy, but some issues?
Problem solved for those who don't need Cyrillic characters.
In Functions.php add this:
Code: [Select]
function fixWrongUTF8Encoding($String) {
$fix_accent_list = array(
'' => ' ',
'>' => '>',
'<' => '<',
'&' => '&',
'"' => '"'
);
//we get our accent characters and its utf-8 equivalent characters
$error_chars = array_keys($fix_accent_list);
$real_chars = array_values($fix_accent_list);
return str_replace($error_chars, $real_chars, $String);
}
In BaseView.php replace this
Code: [Select]
private function setInnerHTML($element, $html)
{
$html = htmlentities($html);
$fragment = $element->ownerDocument->createDocumentFragment();
$fragment->appendXML($html);
$clone = $element->cloneNode(); // Get element copy without children
$clone->appendChild($fragment);
$element->parentNode->replaceChild($clone, $element);
}
with this
Code: [Select]
private function setInnerHTML($element, $html)
{
$html = fixWrongUTF8Encoding($html);
$html = html_entity_decode($html);
$fragment = $element->ownerDocument->createDocumentFragment();
$fragment->appendXML($html);
$clone = $element->cloneNode(); // Get element copy without children
$clone->appendChild($fragment);
$element->parentNode->replaceChild($clone, $element);
}
You don't need to change anything in the report_layout.php file.
I hope it helped you.