+/**
+ * Zeichencode übersetzen
+ *
+ * @param String $txt
+ */
+function translate(&$txt) {
+ if (Auto) {
+ $encoding = mb_detect_encoding($data,"UTF-8,ISO-8859-1,ISO-8859-15,Windows-1252,ASCII");
+ $txt = iconv("$encoding",ServerCode."//TRANSLIT",$txt);
+ //$txt = mb_convert_encoding($txt, ServerCode,"$encoding");
+ } else {
+ $txt = iconv(FileCode,ServerCode."//TRANSLIT",$txt);
+ //$txt = mb_convert_encoding($txt, ServerCode,FileCode);
+ }
+}