Visual Studio输出窗口中的有趣字符 [英] Funny characters in Visual Studio output window

查看:119
本文介绍了Visual Studio输出窗口中的有趣字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个外部工具,该工具使用plink.exe在Linux系统上执行gcc,然后将输出捕获回VS的输出窗口(在工具/外部工具/使用输出窗口"中有一个选中标记).但是Linux输出带有UTF-8,所以我得到了一些垃圾.有什么方法可以使VS将UTF-8输出转换为可读输出?

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?

例如,Linux尝试输出以下内容:

For example, Linux is trying to output this:

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

但是它在VS的输出窗口中显示如下:

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

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

推荐答案

更改输出窗口的字体也可以解决字符问题.
在VS中,转到工具"->选项"->环境"->字体和颜色"->显示设置:输出窗口"

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

这篇关于Visual Studio输出窗口中的有趣字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆