Fix encoding issues in .lrc (lyrics) files — auto-detect the original encoding and convert to UTF-8.
- Scans a folder recursively for
*.lrcfiles - Detects the original encoding with chardet
- Fixes HTML entities (
ç→ç…) - Converts and overwrites files in UTF-8
- Creates a raw backup before touching anything (
raw-original.lrc)
python lrc-fix.py <folder> [encoding]| Argument | Default | Description |
|---|---|---|
folder |
. |
Directory to scan for .lrc files |
encoding |
utf-8 |
Target encoding |
Example:
# Convert all .lrc files in D:\Music and subfolders to UTF-8
python lrc-fix.py D:\Music utf-8Pre-built executables are available on the Releases page.
pip install -r requirements.txt
pyinstaller --onefile --name lrc-fix lrc-fix.pyThe EXE will be at dist/lrc-fix.exe.