windows使用emacs,在org-mode中,#+BEGIN_SRC dot,执行 报编码错误


#1

如下: #+BEGIN_SRC dot :file d:/test-dot.png digraph { // graph [fontname=“Microsoft Yahei”];

node [shape=plaintext, fontname="Microsoft Yahei"];
机器地址; 存储数组的地址连续的内存块; 数组索引;

node [shape=record];
machineAddr [label="{10011101 | 10011110 | 10011111 | 10100000 | 10100001}", color=white];
memoryBlock [label="{  |  |  |  | }"];
arrayIndices [label="{0 | 1 | 2 | 3 | 4}", color=white]

机器地址 -> machineAddr [style=invis];
存储数组的地址连续的内存块 -> memoryBlock;
数组索引 -> arrayIndices [style=invis];

} #+END_SRC 按键 C-c C-c,报错误: These default coding systems were tried to encode text in the buffer ‘ temp file’: (greek-iso-8bit-dos (119 . 26426) (120 . 22120) (121 . 22320) (122 . 22336) (125 . 23384) (126 . 20648) (127 . 25968) (128 . 32452) (129 . 30340) (130 . 22320) (131 . 22336)) However, each of them encountered characters it couldn’t encode: greek-iso-8bit-dos cannot encode these: 机 器 地 址 存 储 数 组 的 地 …

Click on a character (or switch to this window by ‘C-x o’ and select the characters by RET) to jump to the place it appears, where ‘C-u C-x =’ will give information about it.

Select one of the safe coding systems listed below, or cancel the writing with C-g and edit the buffer to remove or modify the problematic characters, or specify any other coding system (and risk losing the problematic characters).

gbk gb2312 utf-8 gb18030 hz-gb-2312 utf-7 utf-16 utf-16be-with-signature utf-16le-with-signature utf-16be utf-16le iso-2022-7bit utf-8-auto utf-8-with-signature utf-8-hfs utf-7-imap utf-8-emacs prefer-utf-8

现在不知道如何来解决这个问题,欢迎大神指点


#2

这个好像是编码的问题 你在论坛搜索一下编码试试