Is there a way to change the default encoding of the > operator in powershell? I'd like it to output as ANSI as UTF-8 for my requirements.txt:
pip freeze > requirements.txt
Is there a way to change the default encoding of the > operator in powershell? I'd like it to output as ANSI as UTF-8 for my requirements.txt:
pip freeze > requirements.txt
pip freeze | Out-File -Encoding UTF8 requirements.txt
or you can try
pip freeze > iconv -f UTF-8 -t ISO-8859-1 in.txt > out.txt
you can read about iconv