找回密码
 加入
搜索
查看: 2876|回复: 5

用FileRead读取UTF-8汉字时乱码

[复制链接]
发表于 2008-7-2 17:44:40 | 显示全部楼层 |阅读模式
如题,用FileRead读取UTF-8文本里面的汉字时会出现乱码,读取ANSI文本就不会,请问有什么解决的方法吗?

[ 本帖最后由 雨滴的孤独 于 2008-7-18 11:29 编辑 ]
发表于 2008-7-3 10:16:13 | 显示全部楼层
可能要补回车字符。
 楼主| 发表于 2008-7-3 22:37:58 | 显示全部楼层
啊?那是为什么
发表于 2009-12-12 16:59:57 | 显示全部楼层
帮助里:
Both ANSI and UTF16/UTF8 text formats can be read - AutoIt will automatically determine the type.

A file can be read as binary(byte) data by using FileOpen with the binary flag - in this case count is in bytes rather than characters.


出现这个问题是不是说明FileRead函数有bug?
发表于 2012-11-6 19:43:33 | 显示全部楼层
发表于 2015-7-21 23:18:37 | 显示全部楼层
正是需要的,谢谢各位大神分享
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-28 18:24 , Processed in 0.080592 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表