摘要: 转自:http://blog.chinaunix.net/uid-26696487-id-3384346.html使用printf输出中文时,如果显示乱码一般是终端编码和代码编写时用的编码不匹配,可以更改终端编码,也可以修改程序编写时的编码。终端编码修改为Terminal->Set charactor encoding->选择编码。修改程序编码可以在vim中输入例如:(:set fileencoding=utf-8),括号中的内容。 阅读全文
posted @ 2012-12-23 19:02 wust.zjf 阅读(1072) 评论(0) 推荐(0) 编辑