[Mono-dev] Maybe a System.Data.OracleClient.dll bug
Rafael Teixeira
monoman at gmail.com
Mon Sep 25 20:36:42 EDT 2006
Just some info, UTF-8 for Unicode 3.x, goes up to 6 bytes per character.
:|
On 9/25/06, Jörg Rosenkranz <joerg.rosenkranz at gmail.com> wrote:
> 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.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw
More information about the Mono-devel-list
mailing list