Created
May 31, 2018 19:21
-
-
Save jonaswebdev/bcd8784d1aabe4136807bdb03623051f to your computer and use it in GitHub Desktop.
Script Convert/Update File encoding to UTF-8 in mass/batch (Eg: WINDOWS-1252 to UTF-8)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for file in $(find . -name "*.php" -type f) | |
do | |
iconv -f WINDOWS-1252 -t UTF-8 "$file" > "$file".utf8 && mv "$file".utf8 "$file" && echo "Success: $file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment