For years, I’ve developed G-Engine and have paid zero attention to text encoding. When I’d store text in a C++ std::string or in a char array, it would just work. It turns out I was just lucky - I was writing text in English, and the default encoding just happened to work fine with English.
However, my luck ran out when I started dealing with Russian localized text and text input. Suddenly my text was garbled and illegible. Time to face the music and deal with the intricacies of text encoding!
This post dives into the history of text encodings and how you can write a program that has broad Unicode support (via UTF-8).
[Read More]