Repair bad character due to encoding problem

Posted by remi bourgarel on Stack Overflow See other posts from Stack Overflow or by remi bourgarel
Published on 2010-05-27T15:31:35Z Indexed on 2010/05/27 18:31 UTC
Read the original article Hit count: 348

Filed under:
|
|
|
|

Hi all,

Recently we had an encoding problem in our system :

If we had the string "æ" in our db ,it became "æ" on our web pages.

Now this problem is solved, but the problem is that now we have a lot of "æ" in our database : users didn't see and validate pre-filled form with these characters.

I found that If you read in utf 8 C3A6 you'll get "æ", if you read it in ascii you'll get "æ".

It's strange because if I execute

"select convert(varbinary(40),N'æ'),convert(varbinary(40),'æ')"

I don't have the same result...

Do you have any idea on how I can fix my database (ie change all "æ" to "æ") ?

thx

© Stack Overflow or respective owner

Related posts about c#

Related posts about sql