摘要: 对于编程新手,字符编码问题一直都是个很棘手,很令人捉急的问题。在google上搜索字符编码,文章很多,其中不乏全面清楚地好文。 这篇文章应该不属于上述之列,只是为解决手头一个难题而去再次次研究这个问题中的一些总结与体会。对于任何一个陌生的概念都可以用下面这三个问题描述一番:What? Why? How?1, 什么是字符编码?为什么要对字符进行编码? 我们打开一个文本文件,看到了里面熟悉的文字... 阅读全文
posted @ 2013-07-18 18:01 orchid 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.java2s.com/Book/CSharp/0040__Essential-Types/Get_all_supported_encodings.htmusing System;using System.Text;class Sample{ public static void Main() { foreach (EncodingInfo info in Encoding.GetEncodings()) Console.WriteLine(info.Name); }} The output:IBM037IBM4... 阅读全文
posted @ 2013-07-18 14:48 orchid 阅读(978) 评论(0) 推荐(0) 编辑