eddyq
eddyq

Reputation: 909

Funny characters in Visual Studio output window

I have written an External Tool that uses plink.exe to execute gcc on a Linux system and then capture the output back on VS's output window (there is a checkmark in Tools/External Tools/Use Output Window). But Linux outputs with UTF-8 and so I get some garbage. Is there any way to get VS to translate that UTF-8 output to readable output?

For example, Linux is trying to output this:

test.c:214: warning: conflicting types for ‘test_zero_read’

but it shows up in VS's output window like this:

test.c:214: warning: conflicting types for ‘test_zero_read’

Upvotes: 2

Views: 3659

Answers (2)

Rob Sloot
Rob Sloot

Reputation: 51

Changing the font of the output window can also address the issue of the characters.
In VS go to Tools -> Options -> Environment -> Fonts and Colors ->Show Settings for: Output Window

Upvotes: 2

Preet Sangha
Preet Sangha

Reputation: 65476

pipe the output on the linux box via unix2dos before finishing.

Edit: another go:

iconv -f utf8 -t iso89 oldfile > newfile

(from here)

Upvotes: 0

Related Questions