How to configure encoding for dotnet runner?
Hello!
I'm using TC to run cakebuild scripts with powershell runner. I made following configurations to correctly display russian messages in build log:
1. Added teamcity.runner.commandline.stdstreams.encoding = UTF8 to build config parameters.
2. Added [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 to my build powershell script.
So far so good, I see correct russian symbols in build log.
Now I consider migrating to dotnet runner. So I changed my build step from powersell to .NET. Unfortunately, after that russian messages are messed up.

I tried to add <param name="Encoding" value="UTF-8"/> to ROLL.BUILD section of agent settings, still no success.
Windows default language is set to Russian. Dotnet sdk version is 5.0.101
Can someone tell me what am I missing? How do I get correct output for .NET Runner? It seems that dotnet cli is defaulting to UTF8, so didn't any problems with migration.
Thanks in advance!
Please sign in to leave a comment.