X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/fc47e4830133fb0841ae91a63f909ea7ce6d72fe..f0e64d77dee59da736fc61304e45ad50210faa55:/lxo-import/import_lib.php diff --git a/lxo-import/import_lib.php b/lxo-import/import_lib.php index 2abec363c..e2eb34c5d 100644 --- a/lxo-import/import_lib.php +++ b/lxo-import/import_lib.php @@ -93,6 +93,7 @@ $parts = array( "partsgroup2" => "3.Warengruppenbezeichnung", "partsgroup3" => "4.Warengruppenbezeichnung", "partsgroup4" => "5.Warengruppenbezeichnung", + "shop" => "Shopexport vorghesehen", ); $contactscrm = array( @@ -369,5 +370,20 @@ function authuser($dbhost,$dbport,$dbuser,$dbpasswd,$dbname,$cookie) { $db->query($sql,"authuser_3"); return $auth; } +/** + * 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); + } +} ?>