if I redirect the output of a program (svn in my case) in powershell to a file, the output is in UTF-16. Can I get it as UTF-8 instead? how?
After you get the output in UTF-16, you can then convert it to UTF-8 maybe? The way to do it can be done is answered here .
The meaningful part in your case is
Set-Content -Encoding UTF8
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.