I have a local DB in SQLyog and WindowsFormApplication
which is connected to that database. I am from Serbia, so I want to insert and our special characters (š, ć, đ, č, Š, Ć, Đ, Č). I have set DB collation to be UTF-8. But, this seems not to work. When I execute the INSERT
command in SQL, i get the proper value filled when I execute SELECT
command and everything works just fine. But, in C# when I try to run insert, some characters are replaced, like č, ć, đ, Ć, Č, with c, c, d, C, C but Đ works as it should.
Example:
When I enter from C# ćććććććć
I get in SELECT
clause cccccccc
.
My code is provided below. I think C# is wrong somewhere here.
C# code:
The DB is very simple. Just a one column with ID and VAL which is value we insert. This can be easily checked.
How can I resolve this issue?