[Mono-dev] Maybe a System.Data.OracleClient.dll bug

Jörg Rosenkranz joerg.rosenkranz at gmail.com
Mon Sep 25 11:04:32 EDT 2006


Hi David,

2006/9/18, David <jiangchengyao at gmail.com>:
> ...
> You will see the result is not we expected,not all the character insert into
> the database.
>

I suspect the problem lies in OciDefineHandle.DefineChar. There a
buffer of 2 * character length is allocated and filled. This is enough
for all encodings using up to 2 bytes per character. I suspect that
chinese UTF8 characters are longer than 2 bytes? Then the
multiplicator at this position should be incremented. Don't know how
to get/compute the correct value though.

Joerg.



More information about the Mono-devel-list mailing list