Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello experts,
I am developing and application for online test which save bilingual text into the database.
Application is running without any problem, but there is one issue which I want to resolve.
I am changing the keyboard to hindi or English on check box click
When I type questions(in hindi/English/both) to richtextbox and save, application successfully save data to the database.

But user already have questions typed in PageMaker/word and when I copy and paste this question to richtextbox it shows perfectly(in Hindi and English), but when I save this data to database it is converting the entire text to English and then save it.

How can I solve this issue?

What I have tried:

I tried using N'richtextbox.text
Posted
Updated 3-Jan-17 2:48am

1 solution

Your table field (in the sql server database) has to be a NVARCHAR type.
 
Share this answer
 
v2
Comments
KManishS 4-Jan-17 1:51am    
its already defined with nvarchar(max)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900