Hi everyone,
Recently I have posted a question regarding special characters in text
files. I was trying to read the text file to process the text later on, but
I was using the wrong encoding. The correct encoding turned out to be
extended ASCII (850).
But now I'd like to store the result in a database. I have tried to do this
by just issueing an insert statement, using the following piece of code:
SqlCommand cmd = new SqlCommand(sb.ToString(), conn);
int result = cmd.ExecuteNonQuery();
This works, but now I'm faced with the same problem, only in reverse - ni
the database, the characters are stored in the wrong encoding!
Is there a way to specify the encoding in which I would like to safe the
characters in the database? What do I need to change in the code?
Thanks in advance,
JayCee
--
http://jcsnippets.atspace.com
a collection of source code, tips and tricks