Code Yarns β€πŸ‘¨β€πŸ’»
Tech Blog ❖ Personal Blog

Unicode wxWidgets in a Non-Unicode World

πŸ“… 2010-Jan-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ unicode, wxwidgets ⬩ πŸ“š Archive

wxWidgets can be compiled to pure Unicode mode by setting wxUSE_UNICODE to 1 in the header file $(WX_WIDGETS_ROOT)\include\wx\msw\setup.h

But what if the rest of your code that interfaces with Unicode wxWidgets is still not Unicode, but uses char and STL std::string? The changes needed at the interface are:

If you are curious about this fishy Multi-Byte business, check out Windows: Multi-Byte.


Β© 2023 Ashwin Nanjappa β€’ All writing under CC BY-SA license β€’ 🐘 Mastodon β€’ πŸ“§ Email