Installing Charsets for Chinese, Russian, and a few others reddit / BSD ---------------------------------------------------------------------- [deleted] · 2018-11-07 13:13 [deleted] ---------------------------------------------------------------------- Kernigh · 2018-11-09 18:26 I don't know whether a "simple installation of a bunch of charsets" in Arch Linux means an installation of fonts, locales, transcoders, or something else. I also don't know whether the names of the music are the names of files, or the names inside some document (like an HTML or PDF file). Perhaps the names are in UTF-8, but the program is using the wrong fonts, where the Arabic or Russian characters are missing from the fonts. The fix would be to switch the font. Perhaps the names are not in UTF-8. For example, Arabic text might be in ISO-8859-6 and Russian text might be in KOI8-R. The fix would be to transcode the text to UTF-8. ---------------------------------------------------------------------- [deleted] · 2018-11-09 18:47 [deleted] ---------------------------------------------------------------------- Kernigh · 2018-11-10 21:38 Check that your terminal is UTF-8. If you run `printf '\xc2\xa3\n'` then it should show `£` (U+00A3 pound sign) I assume that most fonts have £. $ printf '\xc2\xa3\n' £ Open a terminal in the directory that contains the bad directories or mp3s, and dump out the file names as bytes, like $ find . -maxdepth 1 -print0 | hexdump -C 00000000 2e 00 2e 2f 5b 00 2e 2f 63 61 74 00 2e 2f 63 68 |.../[../cat../ch| 00000010 67 72 70 00 2e 2f 63 68 69 6f 00 2e 2f 63 68 6d |grp../chio../chm| 00000020 6f 64 00 2e 2f 63 6b 73 75 6d 00 2e 2f 63 70 00 |od../cksum../cp.| ... You might look at the bytes and try to guess if they are in UTF-8 or some other encodings; or you might post the bytes here so other people can guess. If the bytes are in UTF-8, you might change the terminal's font until you find a font with those characters. If they aren't UTF-8, you might transcode them by piping [ls(1)](https://www.freebsd.org/cgi/man.cgi?query=ls) into [iconv(1)](https://www.freebsd.org/cgi/man.cgi?query=iconv), like `ls | iconv -f koi8-r -t utf-8`. If the bytes are literal question marks in ASCII (3f 3f 3f 3f = ????), then the file names have already been destroyed.