Convert file encoding recursively

/ Published in: Bash
Save to your folder(s)

iconv -l to show all available encodes, replace xxx with you file ext

Copy this code and paste it in your HTML
  1. #!/bin/bash
  3. find /Path/To/Files -name \*.xxx -type f | \
  4. (while read file; do
  5. iconv -f ISO-8859-1 -t UTF8 "$file" > "${}";
  6. done);


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.