Re: Incorrect code page conversion
From: Erland Sommarskog (esquel_at_sommarskog.se)
Date: 11/22/04
- Next message: Tokunaga T.: "Re: Question involving OLE DB, recursion, and filtered views"
- Previous message: Erland Sommarskog: "Re: Create Temp Table in Access ADO.NET"
- In reply to: Michael Bauers: "Incorrect code page conversion"
- Next in thread: Michael Bauers: "Re: Incorrect code page conversion"
- Reply: Michael Bauers: "Re: Incorrect code page conversion"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Nov 2004 22:47:36 +0000 (UTC)
Michael Bauers (MichaelBauers@discussions.microsoft.com) writes:
> I am seeing an incorrect conversion of data stored in SQL database with
> the CZECH_BIN collation. The character 0xEC gets translated to 0x65
> (lower ASCII e.)
>
> We are using ADO, but I suspect this is an OLE DB issue.
>
> The problem also results in a concurrency error on one machine. We
> believe that ADO thinks the data has been changed since the last access
> simply because its internal value for the data is different.
>
> The correct value is only seen on one box, and that is the only box
> running MDAC 2.8. It possible this was an error corrected in MDAC 2.8.
It is not really clear where the error occurs, but if I my guess, you
have an e-hacek in the database, and when it reaches the client, you
now have a plain accentless lowercase e. Also, I would guess that you
are not using Unicode, but varchar.
What is the ANSI code page on the various boxes? To me it sounds that
the box where things are working uses CP1251, whereas the other boxes
uses a code page that does not have e-hacek, for instance CP1252.
You can check the ANSI code page in the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\ACP.
-- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
- Next message: Tokunaga T.: "Re: Question involving OLE DB, recursion, and filtered views"
- Previous message: Erland Sommarskog: "Re: Create Temp Table in Access ADO.NET"
- In reply to: Michael Bauers: "Incorrect code page conversion"
- Next in thread: Michael Bauers: "Re: Incorrect code page conversion"
- Reply: Michael Bauers: "Re: Incorrect code page conversion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|