All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
delphi图像列表组件(TImageList)使用实例
如何实现HTML页面地址栏参数传递与获取_JavaScript技术_编程技术
用php模拟post来提交数据_[PHP教程]
SQL数据库高级教程:SQL CREATE VIEW 语句_[SQL Server教程]
PHP和JS实现普通HTTP上安全地传输密码_[PHP教程]
[delphi语法2]Object Pascal语言注释语句
用户体验:JS实现仿新浪信息提示效果_JavaScript技术_编程技术
用.NET,2.0压缩解压功能处理大型数据
比较SQL,Server,2000,数据库中两个库的差异_[SQL,Server教程]
SQL,Server,连接基础知识_mssql学习_编程技术
Reading number is top 10 pictures
清醇靓丽的美眉
乳娘帕梅拉安德森1
怀春少女-石一伊
The goddess of the single reason2
Sora aoi on twitter4
This is heaven to some path
机器人也有性生活吗?
The most popular girls welcome eggplant
Summer is most suitable for young people to travel in China8
2012 national geographic daily picture6
Download software ranking
Call Of Duty5
Tram sex maniac 2 (H) rar bag3
Tram sex maniac 2 (H) rar bag16
Proficient in Eclipse
C++编程教程第三版
C#COM编程指南
Boxer's Top ten classic battle4
The hero
星际争霸1.08硬盘免安装版
双旗镇刀客B
delv published in(发表于) 2014/1/23 3:12:45 Edit(编辑)
C#中的编码转换_[Asp.Net教程]

C#中的编码转换_[Asp.Net教程]

C#中的编码转换_[Asp.Net教程]

好长时间没有写编码转换.今天写了下特地放上来供大家以后用到就不用去找了.



将一个字符串转换成Unicode类型的Base64编码的字符串如下:


Convert.ToBase64String(Encoding.Unicode.GetBytes(unicodeString));


红色标明的是还可以转换BigEndianUnicode(UTF-16),UTF-7,UTF-8,ASCII的几种编码.



那如何转换回来呢?


Encoding.Unicode.GetString(Convert.FromBase64String(转换后的字符串));


红色标明的是还可以将BigEndianUnicode(UTF-16),UTF-7,UTF-8,ASCII的几种编码转换回来.



很简单.

来源:http://www.cnblogs.com/winnerzone/archive/2007/06/15/784469.html







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.