RE: character set issues on porting ODBC drivers

"Dittmar, Daniel" <[email protected]> Mon, 7 Apr 2003 17:13:34 +0200
Newsgroups gmane.comp.db.sapdb.sources
Message-ID <B9A2DDA03044D311BBD40008C75D6968147D8613@dewdfx24>
> 00b0  00 00 43 00 4f 00 4e 00  4e 00 45 00 43 00 54 00   ..C.O.N. N.E.C.T.
> 00c0  20 00 22 00 44 00 42 00  41 00 20 00 20 00 20 00    .".D.B. A. . . .
> 00d0  20 00 20 00 20 00 20 00  20 00 20 00 20 00 20 00    . . . .  . . . .
> 00e0  20 00 20 00 20 00 20 00  20 00 20 00 20 00 20 00    . . . .  . . . .
> 00f0  20 00 20 00 20 00 20 00  20 00 20 00 20 00 20 00    . . . .  . . . .
> 0100  20 00 22 00 20 00 49 00  44 00 45 00 4e 00 54 00    .". .I. D.E.N.T.
> 0110  49 00 46 00 49 00 45 00  44 00 20 00 42 00 59 00   I.F.I.E. D. .B.Y.
> 0120  20 00 3a 00 41 00 20 00  20 00 20 00 49 00 53 00    .:.A. .  . .I.S.
> 0130  4f 00 4c 00 41 00 54 00  49 00 4f 00 4e 00 20 00   O.L.A.T. I.O.N. .
> 0140  4c 00 45 00 56 00 45 00  4c 00 20 00 31 00 ff ff   L.E.V.E. L. .1...
> 0150  ff ff 05 00 01 00 00 00  00 00 2c 00 00 00 38 7d   ........ ..,...8}
> 0160  00 00 00 4a b5 f4 54 04  00 5e 55 d7 cc dd 95 7f   ...J..T. .^U.....
> 0170  10 7d bc 09 ab 52 a6 8a  0f e5 44 20 76 2e 64 65   .}...R.. ..D v.de
> 0180  74 79 70 30 20 20 20 20  20 20 20 20 20 20 ff ff   typ0           ..

The ODBC driver tries to connect as a Unicode client.

You might want to debug sys/src/pr/vpr10c.c:bool Ascii8Copy. If the password field contains garbage characters, the driver thinks that it's not ASCII.

Daniel Dittmar

-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[email protected]
http://www.sapdb.org/