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

Leszek Ciesielski skolima at gmail.com
Wed Oct 4 13:18:44 EDT 2006

On 10/4/06, David <jiangchengyao at gmail.com> wrote:
> 2006/10/4, David <jiangchengyao at gmail.com>:
> > > On the other hand - after reading other people's mail, it seems to me
> > > that all who experience the trimming have Oracle database setup as
> > > UTF8. Mine works in EEMSWIN1250 (you can check this with "SELECT value
> > > FROM nls_database_parameters WHERE parameter='NLS_CHARACTER_SET';").
> >
> > No, you're wrong
> > At First, I use ZHS16GBK and I find the bug
> > then i turn to utf8, the problem still exists
> > but I didn't test EEMSWIN1250 at all
> >
> And I find the trimming bug only in my Chinese string,
> if you input totally engish string, the bug will not happen

Ok, but ZHS16GBK is still a double byte per character encoding. So
maybe I was not precise enough, but it seems we still have two bugs:
one with trimming multibute characters (which happens when databse is
capable of storing them as normal CHARs), the other with replacing
them with '?' (when the database cannot store them as CHAR, but still
should process them correctly as NCHAR). And as I do not have the
administration rights on the database I use for tests (and can not
change the encoding), I'll have to cope with mine bug first before I
can even test yours.

More information about the Mono-devel-list mailing list