P
P
Pavel Kaptur2017-05-05 14:29:45
Python
Pavel Kaptur, 2017-05-05 14:29:45

How to fix msbuild output?

Hello, I'm trying to write the first script in Python 3, which should build one Visual Studio project for me, I managed to run msbuild correctly and build everything, but the build log that msbuild writes does not look correct, all English letters are in order, but instead of Russian they are different black squares. How can I force it to display the correct log?

proc = subprocess.Popen('MSBuild.exe "Solution.sln" /p:Configuration=Release')
proc.wait()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2017-05-05
@res2001

msbuild is a console utility, default console encoding is 866. Redirect to a file and check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question