Created
September 12, 2022 18:19
-
-
Save redbaty/ecc4126b9a51bb6fa7ad97222043af08 to your computer and use it in GitHub Desktop.
Convert all *.cs files from 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
find . -type f -name "*.cs" | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" | xargs -I {} bash -c "iconv -f WINDOWS-1252 -t UTF-8 {} -o {}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment