Skip to content

Instantly share code, notes, and snippets.

@stdcall
Created July 2, 2013 10:40
Show Gist options
  • Select an option

  • Save stdcall/5908323 to your computer and use it in GitHub Desktop.

Select an option

Save stdcall/5908323 to your computer and use it in GitHub Desktop.
Batch Conversion srt subs in current directory from WINDOWS-1251 to UTF-8
for i in *.srt; do iconv -f cp1251 -t utf-8 -o $i.new $i; done
rm *.srt
for i in *.new; do mv $i ${i%.new}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment