Can't display wchar_t Chinese character using %ws


#1

I’ve push a Chinese font and I can display char with ImGui::Text(u8"Some chinese character") but I can’t do that like ImGui::Text("%ws", L"Some chinese character")


#2

That’s correct, there’s no support for U16 encoding. You need to convert your strings to UTF-8 to use them with imgui.


#3

thx a lot! figured out codecvt works