Open martinwguy opened 4 months ago
Python is sadly still broken in this case. We could reopen stdout etc with surrogateescape to work around it.
I think that this is not mutagen's nor python's fault. If the filename is encoded in CP437 and not UTF-8, which is what python expects according to your LANG setting, then I'd say the best fix is to reencode the filenames correctly.
This can be done with: convmv -f cp437 -t utf-8 *
. That will just show how the files will be renamed but doesn't do any change. Once you check that the encoding is right, you can run: convmv -f cp437 -t utf-8 --notest *
to actually change the filenames in disk.
Trying to see whether ISRC tags are present in a large audio collection using
mid3v2 -l 00*/*3 | grep -a TSRC
it dies halfway through, sayingThis isn't Mina's fault; it's the following file's name which is ANSI or CP437 encoded: "modà - la notte.mp3" where à is represented by character 0x85. The same goes for other files whose names contain 0x8A for è, 0xB4 for é, 0x95 for ò, 0x97 for ù, 0xA2 for ó and so on.
On Debian GNU/Linux with LANG=en_GB.UTF-8