Skip to content

Instantly share code, notes, and snippets.

@gokaybiz
Created March 30, 2021 14:40
Show Gist options
  • Save gokaybiz/4d95a5b6eb4f590d75f771426a64adb7 to your computer and use it in GitHub Desktop.
Save gokaybiz/4d95a5b6eb4f590d75f771426a64adb7 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