How to save hindi data from textbox to SQL server?


New member
Sep 9, 2022
Programming Experience
Hello Friends,

This is regarding an issue in application.

In a textbox, we have set the font of a textbox as Kruti Dev 010.

While typing the text is shown in hindi.

But when we convert it into string say,

Dim s As String = txthindiname.Text

This string shows the data in english, and vice versa the data is stored in sql as english only.

However, when we run a direct query in Sql server, the data in the table is stored in hindi text.

We have set the datatype of the field as nvarchar and in query we are using the prefix N’.

So, we believe the issue lies on the part.

Friends, we really want your help to solve this issue.

Thanks in advance.