Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Converting encoding with iconv command.
#!/bin/bash
for file in `find . -regextype posix-egrep -regex ".*\.(html|jsp|jspx|java|properties|xml|sql|pck|fnc|trg)"`; do
iconv -f ISO-8859-1 -t UTF-8 $file > $file.utf-8;
mv $file.utf-8 $file;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment