freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Brad Wery <bradwery AT gmail.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] Sybase Univarchar Conversion
- Date: Sat, 19 Jun 2010 12:01:26 -0500
This one is a bit over my head. With other ODBC drivers, I don't have to do
anything special and Unicode characters come back from the database correct.
With FreeTDS, the characters are converted and some actually turn to "?".
I won't know the configuration of the server before hand, nor will I know
the language of the strings stored in the database.
I noticed that a lot of people ask about this. Is it a bug? I did notice
this code in token.c:
if (curcol->on_server.column_type == SYBLONGBINARY && (
curcol->column_usertype == USER_UNICHAR_TYPE ||
curcol->column_usertype == USER_UNIVARCHAR_TYPE)) {
/* FIXME ucs2 is not UTF-16... */
/* FIXME what happen if client is big endian ?? */
curcol->char_conv = tds->char_convs[client2ucs2];
}
I couldn't help but notice the fix me labels. Is this the cause?
Thanks,
Brad
-
[freetds] Sybase Univarchar Conversion,
Brad Wery, 06/19/2010
-
Re: [freetds] Sybase Univarchar Conversion,
Frediano Ziglio, 06/20/2010
-
Re: [freetds] Sybase Univarchar Conversion,
Brad Wery, 06/20/2010
- Re: [freetds] Sybase Univarchar Conversion, Frediano Ziglio, 06/21/2010
-
Re: [freetds] Sybase Univarchar Conversion,
Brad Wery, 06/20/2010
-
Re: [freetds] Sybase Univarchar Conversion,
Frediano Ziglio, 06/20/2010
Archive powered by MHonArc 2.6.24.