actually, i dont know why you need to do so, but
登录 | 论坛导航 -> 华新鲜事 -> 社会百科 | 本帖共有 1 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:websg.net (等级:3 - 略知一二,发帖:500) 发表:2005-07-04 22:21:02  楼主  关注此帖
=-求助-= asp.net我怎样才能把中文转换成unicode, 我需要user input chinese to a Textbox, 然后把这个Textbox.Text 转换成unicode ,然后存到database, 怎样做啊?
actually, i dont know why you need to do so, but
you can set this in your web.config file

<globalization requestEncoding="utf-8" responseEncoding="utf-8" /> (or you can set decode/encode for that specific page).

this will convert all into utf characters.

to store this in the database, i suggest you use nvarchar instead of varchar data type.

hope this is help for you!
http://www.websg.net 提供国际域名主机, 虚拟主机,企业邮箱,网站建设等一列服务
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 社会百科 | 返回上一页 | 本主题共有 1 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码