Skip to content

Instantly share code, notes, and snippets.

@ivalentinee
Created November 11, 2017 15:47
Show Gist options
  • Save ivalentinee/3516e0b100d8286c9728c75daa90daf4 to your computer and use it in GitHub Desktop.
Save ivalentinee/3516e0b100d8286c9728c75daa90daf4 to your computer and use it in GitHub Desktop.
Convert subtitles coding system
#!/bin/bash
FILES=*.srt
for f in $FILES
do
echo "Processing $f file..."
iconv -c -f WINDOWS-1251 -t UTF-8 "$f" -o "$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment