Hello Sven, the 'MAXDB_UNICODE' is a no-op currently, and - there is no support for Unicode and there will probably never be for PHP 4. Enjoy the article at http://www.zend.com/zend/week/php-unicode-design.txt for the gory details on when and how PHP will support Unicode someday.
I cite the first sentence for a short answer here: ---------------------------------------------------------------------------- As successful as PHP has proven to be in the past several years, it is still the only remaining member of the P-trinity of scripting languages - Perl and Python being the other two - that remains blithely ignorant of the multilingual and multinational environment around it. ---------------------------------------------------------------------------- Regards Alexander Schröder SAP DB SAP Labs Berlin -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sven Köhler Sent: Montag, 20. März 2006 04:00 To: maxdb@lists.mysql.com Subject: PHP and Unicode Hi, i'm stuck again. People want to access my MaxDB with LONG VARCHAR columns by using PHP. So i made a small test-case and i get the error-message: Cannot convert UCS2 data to ASCII ... Well, that's clear, and i guess, that the PHP extenstion does not properly support Unicode. Well, PHP does not support unicode too, but i don't care. I would already be happier, even i would only get a UCS2/UTF8 string that i can convert with iconv or any other PHP-API that can handle charsets. Something that would work - even if i have to do things by hand. On the other hand, i see examples in the docs like: /* create a connection object which is not connected */ $link = maxdb_init(); /* set connection options */ maxdb_options($link, MAXDB_UNICODE, "FALSE"); maxdb_options($link, MAXDB_TIMEOUT, 5); /* connect to server */ maxdb_real_connect($link, 'localhost', 'MONA', 'RED', 'DEMODB'); Well, so what happens if i set MAXDB_UNICODE to "TRUE" ? For me, nothing changes :-( So what's the status-quo? Greetings Sven P.S.: for my tests, i used: - PHP 4.4.2 - PHP-MaxDB-Extenstion and SQLDBC 7.6.0.16 -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature