Das Modul wurde 2011 veröffentlich und dementsprechend ist der Code.
Vor allem sollten grundsätzlich die DB Funktionen von Modified Shop benutzt werden. Vor allem die DB Verbindung.
Auch das ist Käse:
utf8_encode
htmlentities
Dafür gibt es shopeigene Funktionen (inc/html_encoding.php)
Gruss Web28
@kgd
Da der Artikelstamm neue, also in utf8 und alte Artikel im iso Format in der Datenbank hat, ist mir nicht klar wie man das jetzt umsetzt. ISO wandelt er korrekt mittels utf8_encode um. Aktualisiere ich jetzt einen Artikel wird der natürlich in utf8 gespeichert und da werden nun die Umlaute zerhackt dargestellt. Nehme ich utf8_encode komplett aus dem Script funktioniert die Suche für Artikel mit Umlauten nicht mehr.
Entweder alles UTF-8 oder gar nichts!
Eine 2.0 DB lässt sich auch einfach in UTF-8 umwandeln:
1. Im ISO Shop die DB exportieren - Ohne Zeichenkodierung 'COLLATE' und 'DEFAULT CHARSET'
2. Diesen Dump per Notepad ++ in UTF-8 ohne BOM konvertieren.
3. In der configure.php bei DB_SERVER_CHARSET utf8 eintragen.
4. Den konvertierten Dump wieder importieren.
Natürlich alles erst einmal bei einem Testshop ausprobieren.
Falls es in der DB tatsächlich ISO und UTF-8 gemischt gibt, funktioniert das natürlich auch nicht.
Bei Artikeln und Kategorien kann man das aber mit meinem Modul EasyPopulate beheben, da hier jeder Datensatz einzeln beim Import bei Bedarf in das richtige Format konvertiert wird.
Beispiel: Shop ist UFT-8
Datensatz ISO -> wird in UTF-8 konvertiert
Datensatz UTF 8 -> keine Konvertierung