六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 56|回复: 0

emacs中指定编码

[复制链接]

升级  29.33%

86

主题

86

主题

86

主题

举人

Rank: 3Rank: 3

积分
288
 楼主| 发表于 2013-1-27 05:28:21 | 显示全部楼层 |阅读模式
可以在文件头增加: -*- coding: gb2312; -*-
相关键:C-x RET r TAB会列出相关的编码

C-x <RET> f coding <RET>
    Use coding system coding for saving or revisiting the visited file in the current buffer.
C-x <RET> c coding <RET>
    Specify coding system coding for the immediately following command.
C-x <RET> r coding <RET>
    Revisit the current file using the coding system coding.
M-x recode-region <RET> right <RET> wrong <RET>
    Convert a region that was decoded using coding system wrong, decoding it using coding system right instead.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

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