Use four kinds of Shift JIS properly in CotEditor on Mac

There are multiple variations of Japanese Shift JIS encoding, and CotEditor handles the four types of Japanese Shift JIS encoding as distinct with the names as described below. Although “Japanese (Mac OS)” and “Japanese (Windows, DOS)” do not include “Shift JIS” in their names, both are also extended versions of Shift JIS. Choosing an appropriate encoding varies from case to case, but it is normally safer to use the normal “Japanese (Shift JIS).”

Encoding nameIANA charset nameDescription
Japanese (Shift JIS)shift_jisThe most basic Shift JIS supporting JIS level 1 and 2 kanji characters.
Japanese (Shift JIS X0213)Shift_JISSupport JIS X0213 character set, which includes JIS level 1 through 4 kanji characters.
Japanese (Mac OS)(x-mac-japanese)Based on Shift JIS, with extended support for such as Mac-dependent characters. Being used in Mac OS 9 and earlier.
Japanese (Windows, DOS)cp932Based on Shift JIS, with extended support for such as Windows-dependent characters.

Even among members of the same Shift JIS family, there are differences between these encodings in the way of dealing with particular characters as below:

Halfwidth Yen sign (¥)Halfwidth backslash (\)Halfwidth tilde (~)
Shift JISAvailableReplaced with fullwidth backslash (\)Replaced with question mark (?)
Shift JIS X0213AvailableReplaced with fullwidth backslash (\)Replaced with fullwidth tilde (〜)
Mac OSAvailableAvailableAvailable
Windows, DOSReplaced with backslash (\)AvailableAvailable

See also