Maury Markowitz
2012-06-20 13:37:22 UTC
I know there is an ODBC subgroup, but it's inhabited solely by spam,
so I hope it's OK if I post here. This has nothing to do with
SQLServer, and takes place on the Mac using iODBC. However, I can't
find any mailing list or group that's suitable, and I suspect people
in this group will have some knowledge...
I'm writing an ODBC application using iODBC, and I'm using a small DB
running under MySQL to test against. The data contains some Unicode,
which my character conversion routines "drop" during conversion. I end
up with strings with "holes" in them. In other cases, certain
characters within the columns or names confuse things further.
So, my question is how do I know if the data in a column is in
Unicode, 7-bit ASCII, 8-bit, ShiftJIS, or something else? I know how
to properly convert all of these, but I don't know how to tell if I
need to.
SQLDescribeCol would seem to be the place to go. But when I look in
sqltypes.h, I see references to Unicode and SQLWCHAR, but I'm
mystified how one uses them in practice.
so I hope it's OK if I post here. This has nothing to do with
SQLServer, and takes place on the Mac using iODBC. However, I can't
find any mailing list or group that's suitable, and I suspect people
in this group will have some knowledge...
I'm writing an ODBC application using iODBC, and I'm using a small DB
running under MySQL to test against. The data contains some Unicode,
which my character conversion routines "drop" during conversion. I end
up with strings with "holes" in them. In other cases, certain
characters within the columns or names confuse things further.
So, my question is how do I know if the data in a column is in
Unicode, 7-bit ASCII, 8-bit, ShiftJIS, or something else? I know how
to properly convert all of these, but I don't know how to tell if I
need to.
SQLDescribeCol would seem to be the place to go. But when I look in
sqltypes.h, I see references to Unicode and SQLWCHAR, but I'm
mystified how one uses them in practice.