将粘贴的hindi文本复制到richtextbox并将其保存到SQL Server [英] Copy paste hindi text to richtextbox and save it to SQL server

查看:88
本文介绍了将粘贴的hindi文本复制到richtextbox并将其保存到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆