Chinese character turns into �� or @@ or just nothing
For example
How to convert string to wstring?
I know C++ has converter. But to know how memory is working i should know why i can not do that:
How am I supposed to check the validity of a UTF8 string without buffer overflow?
When looking for a UTF8 handling library for C I found this, which seems to be the most popular on GitHub. It overruns the buffer you pass it to the UTF8 validation function: