krabsetw icon indicating copy to clipboard operation
krabsetw copied to clipboard

ImageFileName cannot be parsed with wstring?

Open bu-shuo opened this issue 3 years ago • 1 comments

https://github.com/microsoft/krabsetw/blob/d4688217e01440bbea9db6d560b3d649a7acdb93/examples/NativeExamples/kernel_trace_003_rundown.cpp?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L74

When I use the std::string class to parse Chinese characters, there will be garbled code in the ImageFileName, but it cannot be parsed using the wstring class. How can I solve this problem?

bu-shuo avatar Nov 25 '21 11:11 bu-shuo

You just set up the Locale like “std::wcout.imbue(std::locale(""));”

Jondoe398 avatar Apr 26 '22 01:04 Jondoe398