首页 | 本学科首页   官方微博 | 高级检索  
     

在C#中实现对乱码的正确显示
引用本文:廖红玉,刘会平,陈晓云. 在C#中实现对乱码的正确显示[J]. 微计算机应用, 2005, 26(4): 499-502
作者姓名:廖红玉  刘会平  陈晓云
作者单位:1. 北京跟踪与通信技术研究所,北京,100094
2. 北京实达科技,北京,100086
摘    要:提出了在C#中显示文本文件时出现乱码的实际问题,并对乱码的产生以及文本文件的ANSI、Unicode等编码格式进行了分析和探讨,给出了ANSI、Unicode等编码的编码规则,并实现了将ANSI、UTF-8、Unicode big endian等几种编码格式到Unicode编码格式的转换,从而解决了在C#中显示文件时可能出现的乱码问题。

关 键 词:C# Unicode ANSI 编码格式 文本文件 实际问题 编码规则 乱码问题 显示文件 big

Display Random Code in the C #
LIAO Hongyu,LIU Huiping,Chen Xiaoyun. Display Random Code in the C #[J]. Microcomputer Applications, 2005, 26(4): 499-502
Authors:LIAO Hongyu  LIU Huiping  Chen Xiaoyun
Abstract:Proposes actual problem that random code is occurred while text file is displayed with C#. Then the paper analyzes and investigates the occurrence of random code, the encoding format of ANSI and Unicode. The encoding rule of ANSI and Unicode is given and the conversion of ANSI, UTF-8,Unicode big endian, etc into Unicode is implemented in the paper. Finally the random code problem is solved in displaying file with C#.
Keywords:Unicode   encode   conversion
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号