Last active
June 5, 2018 00:17
-
-
Save hadisfr/a8d0b3a4cebb64dae9f0df023eadc958 to your computer and use it in GitHub Desktop.
convert subtitles' encoding from Arabic(Windows) to UTF-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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