Guten Morgen Forum,
wie kann man ein ganzes Array von Western nach UTF-8 umwandeln.
$search = mb_convert_encoding(array("ä", "Ä", "ü", "Ü", "ö", "Ö", "ß"), "utf-8");
$replace = mb_convert_encoding(array("ae", "ae", "ue", "ue", "oe", "oe", "ss"), "utf-8");
while($row =& $res->fetchRow(DB_FETCHMODE_ASSOC)) {
$row['folder'] = str_replace($search, $replace, $row['folder']);
$employees[] = $row;
}
Bekomme immer die Notices:
Notice: Array to string conversion in D:\utf\classes\_project\den.class.php on line 70
Notice: Array to string conversion in D:\utf\classes\_project\den.class.php on line 71
Der konvertiert einfach nicht.
Folgendes geht auch nicht:
mb_internal_encoding("utf-8");
$search = array("ä", "Ä", "ü", "Ü", "ö", "Ö", "ß");
$replace = array("ae", "ae", "ue", "ue", "oe", "oe", "ss");