When raid ends we are sending data to our website through API in JSON format.
Here is the problem:
Short:
Convert dynamic encoding std::string to utf-8 including special characters like ™.
Long:
JSON is in utf-8 format, so all data should be utf-8 too. All data is stored in variable C++ std::string and to my knowledge encoding of std::string depends on some things that are unknown to me(sometimes utf-8, utf-16, utf-32, windows..., and maybe more?). I tried convert them but with fail, special characters like ™ are being converted to wrong characters in utf-8. Anyone ideas?
Note: nicknames are displayed correctly in DMG counter (DLL).
Some screeshots if anyone is curious how it looks.






