![]() There's a rm -f in there, so there be monsters. If "bad things" happen as a result of using this script, don't blame me. It skips over encodings that produce a large diff output ("large" as defined by the MAX_DIFF_LINES variable or the second input argument), since those are most likely the wrong encoding. If that fails, it goes through all encodings and shows the diff between the original and re-encoded file. It first tries to iconv from the encoding returned by file -mime-encoding to utf-8. I implemented the bash script below, it works for me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |