OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-module: HowTo send unicode queries?

From: Hötzel, Jürgen (Hoetzelcyperfection.de)
Date: Wed Dec 15 2004 - 04:37:40 CST


Hi,

$DB = maxdb_init();
maxdb_options("MAXDB_UNICODE", "TRUE");
maxdb_real_connect($DB, $aHost, $aUser, $aPassword, $aDatabase);
$query = iconv("iso8859-1","UCS-2BE","insert into test values('test')");
maxdb_query($DB, $query);

fails with "maxdb_query(): -10601 SQL command is the empty string []"

...
$query = iconv("iso8859-1","UCS-2LE","insert into test values('test')");
...

Fails with "maxdb_query(): -3005 Invalid SQL statement [42000]"

Regards,
  Jürgen
-------------------------------------------

Cyperfection - agentur für neue medien gmbh

Jürgen Hötzel
mailto:hoetzelcyperfection.de

Karl-Kraemer-Str. 4 - 67061 Ludwigshafen
fon: 0621/587104-0 - fax: 0621/587104-90
http://www.cyperfection.de/

Anfahrt - http://www.cyperfection.de/Anfahrt/

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb