DB2 connection: Setting codepage

Hi all,

I have some code that has to insert data into databases (DB2 AS400) coming from multilingual sources.

The code on the Webserver is the same; that's why i can not use solution involving php configuration.

For example: User 1 (English) logs into the application and submits some info (uploaded from an excel file); the program inserts it in the corresponding DB => OK.
User 2 (Russian) logs in and submits his data => KO.

I read the excel (Cp1251) fine but the insertion seems to be faulty (destination is CCSID 1025).

I've seen db_client_info() function which tells the code page used; but how to set the code page before connecting (with db2_connect() ).

Thans in advance,
/Ahmed




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SomeDude [ Do, 21 Januar 2010 19:32 ] [ ID #2029510 ]
PHP » gmane.comp.php.database » DB2 connection: Setting codepage

Vorheriges Thema: result set in php pagination
Nächstes Thema: Transferring rows between 2 databases on 2 web servers