Created
May 31, 2014 21:39
-
-
Save djromero/fbb752a75039cc6c561c to your computer and use it in GitHub Desktop.
Latin1 subtitles to UTF-8 oneliner
This file contains hidden or 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
find * -name "*srt" | while read file;do file -I "$file" | grep 8859;if [ $? -eq 0 ];then iconv -f latin1 -t utf8 "$file" > "_${file}"; mv "_${file}" "$file";fi;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment