Skip to content

Instantly share code, notes, and snippets.

@hermesthecat
Forked from gokaybiz/updateEncoding.sh
Created March 12, 2022 16:52
Show Gist options
  • Save hermesthecat/6d6e733a3431ba4f1c0e0f3cfc6da434 to your computer and use it in GitHub Desktop.
Save hermesthecat/6d6e733a3431ba4f1c0e0f3cfc6da434 to your computer and use it in GitHub Desktop.
Change encodings of old windows files to utf-8 without unreadable characters. This will be day saver for old subtitles. windows-1254 => Turkish Windows Encoding
$ find . -name '*.txt' -exec iconv --verbose -f windows-1254 -t utf-8 -o {} {} \;
$ find . -name '*.srt' -exec iconv --verbose -f windows-1254 -t utf-8 -o {} {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment