会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Pierce
Goodbye's the saddest word I'll ever hear, Goodbye's the last time I will hold you near, Someday you'll say that word and I will cry, It'll break my heart to hear you say Goodbye, Till we meet again until then goodbye
Unicode to GB2312
//
获取请求数据流
Stream stream
=
Request.InputStream;
//
流读取器
StreamReader sr
=
new
StreamReader(stream,Encoding.UTF8);
//
读取多有请求信息
string
ss
=
sr.ReadToEnd();
//
转换读取信息字符为字节数组
byte
[] bs
=
Encoding.UTF8.GetBytes(ss);
//
将字节数组转换为编码为GB2312的字符
string
Content
=
HttpUtility.UrlDecode(bs,
0
,bs.Length,Encoding.GetEncoding(
"
GB2312
"
));
posted on
2005-07-27 16:19
Pierce
阅读(
579
) 评论(
3
)
收藏
举报
刷新页面
返回顶部
导航
博客园
首页
新随笔
联系
订阅
管理