A simple Node.js script to convert SRT subtitle files to UTF-8 encoding.
# Clone the repository
git clone https://github.com/TheJakov/convert-srt-utf8.git
cd convert-srt-utf8
# Install dependencies
npm install
# Run the script
npm start <path-to-srt-file>
# Or run directly with node
node convert-srt.js <path-to-srt-file>
The script will create a new file with '_utf8' appended to the original filename.
npm start subtitles.srt
# Creates: subtitles_utf8.srt