Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4724  / 3 Years ago, wed, june 16, 2021, 8:34:44

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?


More From » gedit

 Answers
3

You can use iconv:



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



iconv -f iso88591 -t utf8 chapter1.srt > 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.


[#34712] Thursday, June 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zebrla

Total Points: 356
Total Questions: 110
Total Answers: 120

Location: Sudan
Member since Tue, Aug 3, 2021
3 Years ago
;