Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Encoding ISO-8859-1
#1
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.
Reply
#2
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.
Reply




Users browsing this thread: 1 Guest(s)