Groups | Blog | Home
all groups > sql server odbc > august 2006 >

sql server odbc : I'm losing my tildes over here!


Mike C#
8/28/2006 11:36:19 AM
Hi all,

Looks like I inherited a little collation problem, and it's causing me
headaches. This is a little involved, so please bear with me:

Most of the CHAR and VARCHAR columns in the tables of this database are set
to SQL_Latin1_General_CP1_CI_AS collation. A few are set to
SQL_Latin1_General_CP437_CI_AI. Basically this can't be changed. Now when
I bulk import I'm getting strange results. A regular INSERT with some
accented, etc., Latin characters is working fine. An INSERT of 'MÃirk' in
the CP437 columns (the A has a tilde over it -- in case it doesn't show up
correctly in people's newsreaders) works as expected.

When I try to bulk import with the ODBC Bulk Operations API the A loses the
tilde. I've tried the Windows MultiByteToWideChar function with several
different Windows code pages with some success (I no longer lose the
accented é [e acute] or the French ç [c with the cedilla] characters.)

Does anyone have any ideas I can try to keep from losing the tilde over the
A and any other diacritic marks in my Latin characters?

BTW, I can't change the column collations or change them to NVARCHAR.

Thanks

Mike C#
8/28/2006 1:46:34 PM
Hmmm... After more testing, it looks like the Code Page 437 *is* the
problem. It strips out a lot of accent marks. Looks like they'll have to
take it without accent marks or change the code page. Thanks.

[quoted text, click to view]

AddThis Social Bookmark Button