Virus721
Virus721

Reputation: 8335

Visual Studio 2005, display null terminated char buffers as UTF-8 strings while debugging

Is it possible, using Visual Studio 2005 (and higher) to display a null terminated char buffer as UTF-8 strings while debugging ?

For example, if i have a buffer containing the bytes of the UTF-8 string "Здравствуйте", is there an option to display it as such (when hovering it with the mouse) instead of the ugly ascii equivalent : "ЗдравÑтвуйте" ?

Thank you :)

Upvotes: 1

Views: 306

Answers (1)

Hans Passant
Hans Passant

Reputation: 941635

Use the s8 format specifier in the debug expression:

enter image description here

Your version of VS is stone cold old however, not sure if VS2005 supported it yet.

Upvotes: 2

Related Questions