micro icon indicating copy to clipboard operation
micro copied to clipboard

Add Shift-JIS encoding support

Open H0R1Z0N opened this issue 1 year ago • 2 comments

Hi, i do a lot of Japanese game to english reinsertion of script and i would need Shift-JIS encoding support to not have to rely on Notepad++ in Wine. Shift-JIS's supported in Fedora and OpenSUSE with an extra package but need to be injected back in other distros. I run Arch Linux and did inject it back into my glibc version. Is there any plan to add it ? I am unsure if the Shift-JIS part of the Fedora package came from FreeBSD.

H0R1Z0N avatar Jul 19 '23 10:07 H0R1Z0N

I did try to enforce the encoding in the last 2h and it fail to properly show in Shift-JIS with unknown character mark.

H0R1Z0N avatar Jul 20 '23 01:07 H0R1Z0N

I do not think there are packages that have to be installed, but encoding option can be specified in arguments like this when running micro so that files will be opened in a different encoding: $ micro -encoding shift_jis file.txt

A file can be reopened in another encoding in micro when pressing Ctrl-e then entering these commands: > setlocal encoding shift_jis > reopen

niten94 avatar Dec 21 '23 13:12 niten94