Emacs character code translation C-x RETf, Shift-JIS not listed

Asked 5 months ago, Updated 5 months ago, 16 views

for transcoding in emacs. C-x RET f (set-buffer-file-coding-system)
I tried to convert to Shift-JIS using
Only Shift-JIS does not exist in the list of translation candidates, which results in no match.
What kind of phenomenon is this?

The environment is described below.
Emacs V.24.5 (9.0) on Mac OS X 10.10.5 Yosemite
I installed it from homebrew and got a Japanese inline patch.


2022-09-30 11:22

2 Answers

If it is "shift_jis" (underscore instead of hyphen), it should be in the candidate.

2022-09-30 11:22

If you press TAB or C-i after doing C-x RET f, the candidate will be displayed.
I think it's good to search from there and select the appropriate one.

If you want to match the Windows character code,
I think it would be better to do so.
The new line code is CRLF in Windows-31J.
We can handle characters such as と and /.

There is also cp932-dos, but I was not sure what the difference was.

2022-09-30 11:22

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.