GetSimple Support Forum
Encoding ISO-8859-1 - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Encoding ISO-8859-1 (/showthread.php?tid=756)



Encoding ISO-8859-1 - cumbe - 2010-05-31

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.


Encoding ISO-8859-1 - cumbe - 2010-06-03

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.