emacs23打开gb2312编码文件乱码

Vim、Emacs配置和使用
回复
头像
boydd
帖子: 255
注册时间: 2007-05-10 19:42
来自: 南京, Deutschland, Karlsruhe
联系:

emacs23打开gb2312编码文件乱码

#1

帖子 boydd » 2007-08-18 20:38

RT,我用的emacs23 cvs自编译的版本
一直打开uft8的中文文档没有任何问题
但是今天用才发现打开gb2312的文档是乱码
用gedit --encoding=gb2312就没有问题
请问怎么才能使emacs23自动识别gb2312?
头像
zhan
帖子: 1880
注册时间: 2005-08-15 0:04
来自: 南7技校

#2

帖子 zhan » 2007-08-19 0:32

给个示例文件吧.....
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
头像
boydd
帖子: 255
注册时间: 2007-05-10 19:42
来自: 南京, Deutschland, Karlsruhe
联系:

#3

帖子 boydd » 2007-08-19 3:20

zhan 写了:给个示例文件吧.....
比如用emacs+w3m打开man.chinaunix.net
头像
boydd
帖子: 255
注册时间: 2007-05-10 19:42
来自: 南京, Deutschland, Karlsruhe
联系:

#4

帖子 boydd » 2007-08-19 7:23

never mind, 搞定了
corruptsatan
帖子: 3
注册时间: 2007-08-22 9:26

#5

帖子 corruptsatan » 2007-08-22 10:08

怎么搞定的呀?
分享一下吧!
头像
boydd
帖子: 255
注册时间: 2007-05-10 19:42
来自: 南京, Deutschland, Karlsruhe
联系:

#6

帖子 boydd » 2007-08-22 16:31

add
--* gb2312 *--
in every file's head
or you can write a lisp function hook
but i have no time right now to do it
maybe later:)
头像
forrid
帖子: 659
注册时间: 2007-04-23 17:40

#7

帖子 forrid » 2007-11-20 19:04

;;;; 自动识别文档编码
(require 'unicad)

吾生也有涯,而知也无涯,以有涯随无涯,SB啊~~~~~~~~~~
zhangsong023
帖子: 768
注册时间: 2006-09-20 19:56

#8

帖子 zhangsong023 » 2007-11-20 21:21

版本不够高,在23.0.60中,不做任何编码设置,识别gb2312没有任何问题。
回复