使用C#在Windows应用程序中输入马拉地文本 [英] Input marathi text in windows application using C#

查看:66
本文介绍了使用C#在Windows应用程序中输入马拉地文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows应用程序的文本框中输入马拉地语字符并将其保存在数据库中。我试图通过更改文本框的字体来实现它,但我只获得了作为马拉地语字符的文本,但是当我试图将其保存在数据库中时成为英文字符..

我不想使用google tranasalator,因为当我们在其中设置语言时,它适用于整个系统。

请帮助我

How to enter marathi characters in textbox in windows application and save it in database.I was trying to do it by changing font of textbox but i get only enetered text as marathi character but when am trying to save it in database it converted into english characters..
I dont want to use google tranasalator because when we set language language in it,then it applies to whole system.
Please help me

推荐答案

您需要使用Unicode SQL数据类型,例如 nchar nvarchar ntext

http://msdn.microsoft.com/en-us/library/ms191200%28v=sql.105%29.aspx [ ^ ]。



您至少需要学习Unicode的基础知识;看起来你对它是如何工作有一个非常模糊的想法,如果有任何想法:

http: //en.wikipedia.org/wiki/Unicode [ ^ ],

http://www.unicode.org [ ^ ],

http://www.unicode.org/standard/principles.html [ ^ ]

http:// www .unicode.org / faq / utf_bom.html [ ^ ]。



-SA
You need to use Unicode SQL data types, such as nchar, nvarchar or ntext:
http://msdn.microsoft.com/en-us/library/ms191200%28v=sql.105%29.aspx[^].

You need to learn at least basics of Unicode; it looks like you have a very vague idea of how it works, if any idea at all:
http://en.wikipedia.org/wiki/Unicode[^],
http://www.unicode.org[^],
http://www.unicode.org/standard/principles.html[^]
http://www.unicode.org/faq/utf_bom.html[^].

—SA


这篇关于使用C#在Windows应用程序中输入马拉地文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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