Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am having problems with subtitles in my language. They are encoded as Western(ISO-8859-15) and therefore some characters are not displayed correctly. I am tired of replacing manually using gedit and ctrl-h and then saving as UTF-8. How to automate this process?

share|improve this question

1 Answer

up vote 2 down vote accepted

You can use iconv:

If the file is named chapter1.srt, then run:

iconv -f iso88591 -t utf8 > outputfile.srt

and it will create the file, although it'll have a different name. If you move them out into another directory, then you can easily pipe them back in.

share|improve this answer
Thank you, it works. – Primož Kralj Oct 25 '12 at 20:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.