Skip to content

Instantly share code, notes, and snippets.

@sillage
Last active August 29, 2015 14:07
Show Gist options
  • Save sillage/8740ba0eb7b036e17204 to your computer and use it in GitHub Desktop.
Save sillage/8740ba0eb7b036e17204 to your computer and use it in GitHub Desktop.
Change encoding of file to UTF-8
!# /bin/sh
#source: https://wiki.gentoo.org/wiki/Vim#Change_file_encoding
vim -c ":wq! ++enc=utf8" *.srt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment