I have a database in SQL Server.
I have a table Demo where I inserted text in Russian into a column of type Nvarchar
Now I want to read the Russian text into my Delphi app where I want to store it into a string.
Do I have to set any Charset property of ADO query etc. ?
Any other ideas would be welcome.
Thanks in advance
Since there was no answers to this one , i will answer it myself . Using
SetThreadLocale(<language id>)i was able to set the thread’s language id to 1033 ( for english) . Since my DB was set to 1033 id , the displayed text is now correctly displayed . I hope it helps others.To correctly enter Unicode characters to database , use the prefix
Nfor columns where unicode strings are to be entered. For more details , have a look here