leo的编码

bigzhu posted @ Jun 26, 2007 09:32:00 PM in leo(LiterateProgramming) , 1305 阅读

leo默认使用utf-8编码
我也喜欢utf-8,但是主机编码不是
搞上去的代码输出的中文是乱码

无奈,只有使用@encoding GB2312,在leo的每个文件前面指定文件的编码

但是这样太麻烦了,打开myLeoSettings.leo

找到Unicode options这一节点
@string default_derived_file_encoding = utf-8
@string new_leo_file_encoding = utf-8

改程序的话,我一般是导入derived_file,所以先只改
@string default_derived_file_encoding = GB2312



登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter