Hacky scripts to fix Shift-JIS mojibake into UTF-8, especially filenames after unzipping zip files created on Japanese Windows computers.
Tested on macOS 10.13 on a APFS drive.
$ python3 fix_mojibake.py --create to_fix.txt
Original text:
DZDZÇ≈ï∂éöâªÇØÇÉyÅ[ÉXÉgâ∫Ç≥Ç¢
Fixed text:
ここで文字化けをペースト下さい