agile_boy 发表于 2013-1-27 05:28:21

emacs中指定编码

可以在文件头增加: -*- 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.
页: [1]
查看完整版本: emacs中指定编码