2013年8月2日

ANSI 转 UTF-8

摘要: ANSI和UTF-8格式都不太了解,各自好像都有好几种,下载了一个库,文件基本都是ANSI格式,linux显示乱码,原来都是在虚拟机一个个的“另存为“完成的,这次文件有点多,因此需要用命令完成。以下方法不通用,遇到特殊情况再行处理方法1:1 iconv -f GBK -t UTF-8 inputfilename -o outputfilename2 #-f后是源文件编码3 #-t后是转换成的文件编码格式4 5 #icov -l 可以查看所有的编码格式,我尝试使用了 -f ANSI没有用6 #之所以使用 -f GBK, 完全是因为在用方法2来解决文件格式转化时,尝试了GBK参数,7 #因此使用了 阅读全文

posted @ 2013-08-02 13:22 阿加 阅读(715) 评论(0) 推荐(0) 编辑

write solid code 零散(原文)

摘要: 整理下目录,看了这个文件,幸好未删除。以下是《write solid code》中的原文摘录。1、How could I have prevented this bug?2、How could I have automatically detected this bug?3、If a programmer believes that a bug can simply "go away", or that fixing bugs "later" won't be harmful to the product, bugs will persist.4 阅读全文

posted @ 2013-08-02 08:22 阿加 阅读(266) 评论(0) 推荐(0) 编辑

导航