将粘贴的hindi文本复制到richtextbox并将其保存到SQL Server [英] Copy paste hindi text to richtextbox and save it to SQL server
问题描述
您好专家,
我正在开发和应用在线测试,将双语文本保存到数据库中。
应用程序运行没有任何问题,但有一个问题我要解决这个问题。
我正在将键盘更改为印地语或英语复选框点击
当我输入问题(印地语/英语/两者)到richtextbox和保存,应用程序成功将数据保存到数据库。
但是用户已经在PageMaker / word中键入了问题,当我将此问题复制并粘贴到richtextbox时,它显示完美(用印地语和英语),但是当我将这些数据保存到数据库时,它将整个文本转换为英文然后保存。
如何解决这个问题?
我尝试了什么:
我尝试使用N'richtextbox .text
您的表字段(在sql server数据库中)必须是NVARCHAR类型。
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解决方案Your table field (in the sql server database) has to be a NVARCHAR type.
这篇关于将粘贴的hindi文本复制到richtextbox并将其保存到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!