Re: PHP 4.0 Bug #8361 Updated: Chinese char changed & ADODB.command,recordset can not be used
| From: | phpme | Date: | Sat, 03 Feb 2001 05:38:24 +0000 |
| Subject: | Re: PHP 4.0 Bug #8361 Updated: Chinese char changed & ADODB.command,recordset can not be used | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-45658@lists.php.net to get a copy of this message | ||
Thanks you all,
I'd like to try it, but, where can I get a compiled version for windows? thanks!
regards,
steeven
> ID: 8361
> Updated by: phanto
> Reported By: steeven@kali.com.cn
> Status: Feedback
> Bug Type: COM related
> Assigned To: phanto
> Comments:
>
> could someone with a chinese charset try this please.
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-01-29 17:17:27] phanto@php.net
> this should be fixed in cvs
>
> please try a snapshot from http://snaps.php.net and give me
> feedback.
>
> ---------------------------------------------------------------------------
>
> [2000-12-21 13:52:12] steeven@kali.com.cn
> I have setup PHP to work with ADO, but they would't work:
>
> $dbc = new COM("ADODB.Connection");
> $dbc->Provider = "sqloledb";
> $dbc->Open('DSN=starmate;Database=magway;UID=sa;PWD='); //OK
> $q="select title from css";
>
> //1. command object
> $cm= new COM("ADODB.Command");
> $cm->CommandText=$q;
> $cm->ActiveConnection=$dbc; //PropPut() failed!!!
> $rs=$cm->Execute(); //Invoke() failed!!!
> //
>
> //2. recordset still don't work
> $rs=new COM("ADODB.Recordset");
> $rs->Open($q); //Invoke() failed!!!
>
> //only this code will work
> $rs=$dbc->Execute($q);
> echo $rs->fields[0]->value . "<br>";
>
>
> On the other hand, all the Double byte char input/output will be cut to 1byte. 测试a will be
> changed to 3 byte char.
> Test with ADODB,Word, It seemed that windows report chinese as one char, but php think it one
> byte.
>
>
> ---------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=8361&edit=2