我们如何在visual studio数据库中存储urdu语言 [英] How we store urdu language in visual studio database

查看:71
本文介绍了我们如何在visual studio数据库中存储urdu语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们将urdu语言数据存储在数据库中时,会存储这些值,但是当我们看到数据库中的数据时,它没有正确显示 - 它显示如下: ???????????

解决方案

您需要确保结果是UTF-8编码。


您好,



如果您的字段类型是 Nvarchar



 创建  TestTable 

ID Bigint 身份 1 1 NOT NULL 主要 密钥
详细信息 nvarchar 200 NOT < span class =code-keyword> NULL ,





例如我创建了一个存储过程:



 创建 过程 WriteInTestTable(
@ Detail as Nvarchar 200

作为
开始

插入 TestTable(详情)
@ Detail
结束







如果我将值插入' N ',例如:



  exec  WriteInTestTable N ' 一些乌尔都语单词......' 





然后,我看不到任何问题:



 选择 *  TestTable 


在数据字段中选择数据类型

  nvarchar的 


When we store urdu language data in a database then the values are stored but when we see the data in the database it's not shown correctly - it's shown like this: ???????????????????????

解决方案

you need to make sure your results are UTF-8 encoded.


Hello,

If your field type is Nvarchar:

Create Table TestTable
(
	ID Bigint Identity(1,1) NOT NULL Primary Key,
	Detail nvarchar(200) NOT NULL,
)



For example I've created a stored procedure:

Create  Procedure   WriteInTestTable(
   @Detail   as  Nvarchar(200)
)
As
Begin

        Insert  TestTable (Detail)
                Values(@Detail)
End




And if I insert value as 'N', for example:

exec WriteInTestTable N'Some Urdu words...'



Then, I don't see any problem:

Select	*	From	TestTable


select data type in data field

nvarchar


这篇关于我们如何在visual studio数据库中存储urdu语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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