How to deal with SHIFT_JIS on linux? only workaround i know is to use iconv, anyway to make it readable systemwide?
which distro?on arch-based ones, you would uncommentja_JP.UTF-8 UTF-8on /etc/locale.genhttps://wiki.archlinux.org/title/Locale#Generating_locales
>>1554850Honestly unless you are using a extremely retarded distro like ubuntu the solution should be universal. I have no problems with UTF-8 chars I also don't think you need the japanese locale tho show the characters, although I have it, but the characters will render like traditional chinese. My problem is with SHIFT-JIS charactes I want to read them with ls and cat. I use arch btw
>>1554825>>1554887>only workaround i know is to use iconvSeems you already had it figured out. There is no way to make it work correctly everywhere other than converting it to UTF-8.This wiki page has some tips you might find useful:https://wiki.archlinux.org/title/Character_encodingYour terminal is going to be UTF-8, and so it cannot display SJIS-encoded text correctly.It will work in things like vim with the right config, but that's because it coverts the text when you open the file.If you really want to leave the files as they are for some reason, you could pipe those commands to iconv. I just tried it with one of those touhou readmes that zun still makes with SJIS to this day, and it works great.