请教一个和emacs相关的编码问题

Vim、Emacs配置和使用
回复
smartcar
帖子: 131
注册时间: 2006-04-07 14:14
来自: 北京
联系:

请教一个和emacs相关的编码问题

#1

帖子 smartcar » 2007-01-23 17:27

我目前使用的操作系统(edgy)默认使用的是utf-8编码,但是我发现我在emacs当中使用中文的时候,文件被存储为gb2312的编码,当我在终端中使用cat some.txt的时候,如果不修改终端的编码为gb2312。并且编译程序的时候在emacs当中输出的信息也会不能正常输出,请问大家知道如何控制emacs中使用的字符集么?
附件
Screenshot.png
herberteuler
帖子: 45
注册时间: 2007-01-27 14:11

#2

帖子 herberteuler » 2007-01-27 14:19

代码: 全选

(info "(emacs) international")
(info "(elisp) coding systems")
头像
zhan
帖子: 1880
注册时间: 2005-08-15 0:04
来自: 南7技校

#3

帖子 zhan » 2007-01-27 14:35

C-x Return f
然后保存吧
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
smartcar
帖子: 131
注册时间: 2006-04-07 14:14
来自: 北京
联系:

感谢楼上的

#4

帖子 smartcar » 2007-02-01 16:32

谢谢!
wuyaming
帖子: 51
注册时间: 2007-01-30 9:22

#5

帖子 wuyaming » 2007-02-13 18:50

我的也有编译出错信息出现乱码的问题,发现把以前使用的.emacs中关于编码配置的内容注释掉就好了 :)
回复