错误的角色可视化 [英] Wrong visualization of characters

查看:85
本文介绍了错误的角色可视化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,有没有人知道我需要做些什么才能在我在代码中逐步调试时更改这些字符的显示方式?





即时测试西班牙语语言,人物是:Ñáéíóú。但是我需要调试这些角色,我无法正常看到它们。


我没关系打印它们:



提前感谢。


编辑1:对不起它是visual Studio 2015



解决方案

< span style =""> 序列" Ã""(C3 B1)似乎代表"ñ"(00F1)的UTF-8编码。可能你的文本
文件是UTF-8。如果可能,请在记事本的"另存为"对话框中将其更改为Unicode(UTF-16),或使用特定方法对文件进行解码:


      &NBSP;&NBSP;&NBSP;
https://www.bing.com/search?q=stl+read+utf- 8 +文件


如果您确实希望保留此格式并在Watch窗口中正确查看,请检查"s8"格式说明符:


    ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
https://docs.microsoft.com/en-us/visualstudio/debugger/格式指定符合CPP


Hello everyone, Does anyone know what i need to do to change how this characters are being displayed while i do a step by step debug in the code?


im testing something with spanish language, the characters are: Ñáéíóú. but i need to debug with this characters and i cant see them porperly.

I'm ok printing them:

thanks in advance.

Edit 1: Sorry It is visual Studio 2015

解决方案

The sequence "ñ" (C3 B1) seems to represent the UTF-8 encoding of "ñ" (00F1). Probably your text file is UTF-8. If possible, change it to Unicode (UTF-16) in "Save As" dialog of Notepad, or use specific methods to decode the file:

·         https://www.bing.com/search?q=stl+read+utf-8+file

If you actually want to keep this format and to see it correctly in Watch window, then check the "s8" format specifier:

·         https://docs.microsoft.com/en-us/visualstudio/debugger/format-specifiers-in-cpp


这篇关于错误的角色可视化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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