Answer the question
In order to leave comments, you need to log in
How to find all php files with encoding other than UTF-8?
I found this command on the internet:
find ./ -type f | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" > utf8_fail
Answer the question
In order to leave comments, you need to log in
find ./ -type f -iname "*.php" | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" > utf8_fail
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question