Skip to content

Instantly share code, notes, and snippets.

@hadisfr
Last active June 5, 2018 00:17
Show Gist options
  • Save hadisfr/a8d0b3a4cebb64dae9f0df023eadc958 to your computer and use it in GitHub Desktop.
Save hadisfr/a8d0b3a4cebb64dae9f0df023eadc958 to your computer and use it in GitHub Desktop.
convert subtitles' encoding from Arabic(Windows) to UTF-8
#!/usr/bin/env bash
for f in `find . -name "*.srt"`; do
iconv -f ms-arab -t utf8 $f > ${f%".srt"}.u.srt
echo -e ${f%".srt"}.u.srt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment