Categories
How to recursively re-encode all files in folders from w1251 to utf8 on Ubuntu?
Got a folder with a site. Some of the files are encoded in UTF-8, some in Windows 1251. How to bypass all files and change the encoding? OS Ubuntu 18.04
Answer the question
In order to leave comments, you need to log in
how to convert: man iconv how to reverse: man find
for file in `find /etc -type f -name "*.*"` do iconv -f CP1252 -t UTF-8 $file | dos2unix > $file done Something like this...
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question