找回密码
 立即注册
查看: 825|回复: 7

读取txt怎么判断编码啊

[复制链接]

2034

回帖

2万

基友

2万

积分

仙人7层 Lv.16

Invincible

Rank: 10Rank: 10Rank: 10

发表于 2014-4-20 19:39:32 | 显示全部楼层 |阅读模式

While the truncheon may be used in lieu of conversation words will always retain their power.
回复

使用道具 举报

1249

回帖

2万

基友

2万

积分

萨菲尔斯

【直♂男】

Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17

苍海的女仆伯爵荣耀

发表于 2014-4-20 20:06:21 | 显示全部楼层
我又想起我玩百万亚瑟王的时候一个txt里面有2中编码模式,,,,
Five贴吧个人网站www.fivekuai.com
回复 支持 反对

使用道具 举报

477

回帖

1537

基友

3190

积分

通神5段 Lv.8

Rank: 4

发表于 2014-4-21 18:24:29 | 显示全部楼层
ansi or unicode 一般都这俩种吧
回复 支持 反对

使用道具 举报

2034

回帖

2万

基友

2万

积分

仙人7层 Lv.16

Invincible

Rank: 10Rank: 10Rank: 10

 楼主| 发表于 2014-4-21 18:40:53 | 显示全部楼层
and1and1 发表于 2014-4-21 18:24
ansi or unicode 一般都这俩种吧

是一般就这两种 可是unicode还有utf8 utf16 utf32
While the truncheon may be used in lieu of conversation words will always retain their power.
回复 支持 反对

使用道具 举报

7657

回帖

86万

基友

34万

积分

天下一番

Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

伯爵荣耀

发表于 2014-4-22 15:58:42 | 显示全部楼层
Rise 发表于 2014-4-21 18:40
是一般就这两种 可是unicode还有utf8 utf16 utf32

一般都是ansi  也就是Encoding.Default  当然简体中文系统的ansi就是GBK了
然后Encoding.Unicode特指utf-16
剩下两个一般不说unicode而是直接说utf-8或者utf-32  现在32比较少见
回复 支持 反对

使用道具 举报

2034

回帖

2万

基友

2万

积分

仙人7层 Lv.16

Invincible

Rank: 10Rank: 10Rank: 10

 楼主| 发表于 2014-4-22 18:51:22 | 显示全部楼层
龙 发表于 2014-4-22 15:58
一般都是ansi  也就是Encoding.Default  当然简体中文系统的ansi就是GBK了
然后Encoding.Unicode特指utf ...

我知道unicode指utf16
While the truncheon may be used in lieu of conversation words will always retain their power.
回复 支持 反对

使用道具 举报

280

回帖

-10

基友

190

积分

凡人2阶 Lv.2

Rank: 1

发表于 2014-5-16 14:38:33 | 显示全部楼层
逛逛
回复

使用道具 举报

280

回帖

-10

基友

190

积分

凡人2阶 Lv.2

Rank: 1

发表于 2014-5-16 21:10:54 | 显示全部楼层
逛逛
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|苍海国际 ( 鲁ICP备13020644号-1 )

GMT+8, 2024-6-1 11:27 , Processed in 0.040560 second(s), 30 queries .

Powered by Discuz! Theme By eRic Modified by 4bpa

© CangHai International We Do Our Rights!

返回顶部