This commit is contained in:
Andreas Österreicher
2007-09-05 14:04:28 +00:00
parent 50c8b8c9fe
commit 530bc6f796
15 changed files with 366 additions and 49 deletions
+14 -11
View File
@@ -52,18 +52,21 @@ class betriebsmittel
function betriebsmittel($conn,$betriebsmittel_id=null, $unicode=false)
{
$this->conn = $conn;
if ($unicode)
if($unicode!=null)
{
$qry = "SET CLIENT_ENCODING TO 'UNICODE';";
}
else
{
$qry="SET CLIENT_ENCODING TO 'LATIN9';";
}
if(!pg_query($conn,$qry))
{
$this->errormsg= "Encoding konnte nicht gesetzt werden";
return false;
if ($unicode)
{
$qry = "SET CLIENT_ENCODING TO 'UNICODE';";
}
else
{
$qry="SET CLIENT_ENCODING TO 'LATIN9';";
}
if(!pg_query($conn,$qry))
{
$this->errormsg= "Encoding konnte nicht gesetzt werden";
return false;
}
}
}