GetSimple Support Forum

Full Version: Encoding ISO-8859-1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I need to have the web in encoding ISO-8859-1. Already i change somethings in various php. But i have a problem with the content of customfields. I do not know like to do for that the content of customfields of page.xml is saved in encoding ISO-8859-1. All data of pages.xml is well, but the data of the fields of customfields not.

All everyelse is ok, i only need that.

What should i change?.

Thanks and regards.
I've been able to solve it.
The solution was to save the data in xml, with htmlentities...
In customfiefds.php, change the following function:
Code:
function saveTagValues(){
    global $tags;
    global $note;
    global $xml;

    while (list($key, $val) = each($tags)) {
        if(isset($_POST['post-'.strtolower($key)])) {
            $note = $xml->addChild(strtolower($key));
            $note->addCData(htmlentities($_POST['post-'.strtolower($key)], ENT_QUOTES, 'UTF-8'));
                        //$note->addCData($_POST['post-'.strtolower($key)]);
        }
    }
}

I leave this, if someone is interested...

Regards.