2

I created a Windows form application in C# and using a SQL database. I am from Bulgaria and I need cyrillic characters in my database but whet I use cyrillic character they appear in database as '?'.

If anyone can help me I will be very happy because this is my first Windows forms application!

See image -> See image

1
  • 1
    Are you writing SQL (structured query language) and really mean Microsoft SQL Server (the actual product) by this? If yes: please add sql-server tag to make this clear. If not: what database system is this for? Commented Nov 7, 2013 at 20:32

1 Answer 1

2

To successfully store (and retrieve) Cyrillic characters, you must

  1. use nvarchar(n) datatype in your database table - are you?

  2. when inserting, either use the N' prefix (INSERT INTO YourTable(...) VALUES(N'....', ...) or make sure the calling application (your C# code) also uses and specifies nvarchar (Unicode characters)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.