在MsSql Server中存储和检索Unicode字符 [英] Storing and retrieving unicode characters in MsSql Server

查看:137
本文介绍了在MsSql Server中存储和检索Unicode字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在MS Sql Server中保存和检索 unicode字符,以便稍后在网页中显示它们.我正在开发 urdu博客

How to save and retrieve unicode characters in MS Sql Server to display later them in web page. I am developing urdu blog

推荐答案

文档又如何( MSDN :使用Unicode数据
What about documentation (MSDN: Using Unicode Data, UNICODE)?
:)


类似于 [ ^ ]


您必须使用nChar和nVarchar数据类型,这对于存储Unicode数据很有用.也可以正确保存多行文本框文本(我是指TAB,换行等).从db检索文本后,您可以看到在文本框中键入的格式化输出.
You must use nChar & nVarchar datatypes which is useful for storing Unicode data. Also it saves the multiline textbox text correctly( i mean TAB, New line,etc.). After retrieve the text from db then you can see the formatted output which you typed in textbox.


这篇关于在MsSql Server中存储和检索Unicode字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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