X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fc47e4830133fb0841ae91a63f909ea7ce6d72fe..6d11d8d2cbef9d44c7e5c349fc7bcfb68807abbd:/lxo-import/db.php diff --git a/lxo-import/db.php b/lxo-import/db.php index aae192c0f..3c884d0e8 100644 --- a/lxo-import/db.php +++ b/lxo-import/db.php @@ -134,6 +134,26 @@ class myDB extends DB { } else { return true; }; } + /** + * Zeichekodirung der DB ermitteln + * + * @return String + */ + function getServerCode() { + $sql="SHOW server_encoding"; + $rs = $this->getAll($sql); + return $rs[0]["server_encoding"]; + } + function getClientCode() { + $sql="SHOW client_encoding"; + $rs = $this->getAll($sql); + return $rs[0]["client_encoding"]; + } + function setClientCode($encoding) { + $sql="SET client_encoding = '$encoding'"; + $rc = $this->query($sql); + return $rc; + } } ?>