-
-
Save tenken/7b4e3f782370142aca75 to your computer and use it in GitHub Desktop.
Convert windows-1251 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/zsh | |
for file in ./**/*.php | |
do | |
iconv -f windows-1251 -t UTF-8 "$file" > "${file%.php}-utf8.php" | |
rm $file | |
mv ${file%.php}-utf8.php $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment