Simple SRT code page converter
Posted: Thu Sep 05, 2019 1:30 pm
Since many subtitles are not encoded as utf-8 files, I've slapped together a very simple command line tool that'll convert non-utf-8 files to utf-8 files.
To use it unzip srt2utf8.exe to the folder that contains the subtitles and drag & drop the subtitle file(s) on srt2utf8.exe. You can also double-click srt2utf8.exe to process all .srt files in the folder. Of course, you can also use it in a command prompt window.
For example, if you've downloaded an Arabic subtitle file, named subtitle.srt and process it with srt2utf8.exe, you should end up with:
subtitle.ar.srt (the converted utf-8 file)
subtitle.windows-1256.bak (the original subtitle file)
If the subtitle file already is a utf-8 file, the tool will try to detect the language and insert the language code before the file extension. I.e., if nothing happens when you use the tool, the file either already is a utf-8 file or the code page couldn't be converted.
Note that the code page/language detection libraries that I've used aren't 100% reliable.
If you're interested in this tool, pm me for the download link.
To use it unzip srt2utf8.exe to the folder that contains the subtitles and drag & drop the subtitle file(s) on srt2utf8.exe. You can also double-click srt2utf8.exe to process all .srt files in the folder. Of course, you can also use it in a command prompt window.
For example, if you've downloaded an Arabic subtitle file, named subtitle.srt and process it with srt2utf8.exe, you should end up with:
subtitle.ar.srt (the converted utf-8 file)
subtitle.windows-1256.bak (the original subtitle file)
If the subtitle file already is a utf-8 file, the tool will try to detect the language and insert the language code before the file extension. I.e., if nothing happens when you use the tool, the file either already is a utf-8 file or the code page couldn't be converted.
Note that the code page/language detection libraries that I've used aren't 100% reliable.
If you're interested in this tool, pm me for the download link.