While at the current moment all processing is done in ASCII (char *) with single-byte characters, it will show weird glyphs if trying to interpret UTF-8 data like that. Since UTF-8 is ASCII-compatible, it would be beneficial to find a way to read in the data (most notably, the results of parsing of desktop entries) as UTF-8 so they can be displayed correctly, without any boxes or "question mark diamonds".
Unfortunately since I am learning C at the same time as I'm writing TuWiM it escapes me how to do it for now. Do I use wchars/wstrings? Or is it completely different kind of Unicode (UTF-16/UTF-32)? To be honest I am confused, so any guidance would be helpful.
While at the current moment all processing is done in ASCII (char *) with single-byte characters, it will show weird glyphs if trying to interpret UTF-8 data like that. Since UTF-8 is ASCII-compatible, it would be beneficial to find a way to read in the data (most notably, the results of parsing of desktop entries) as UTF-8 so they can be displayed correctly, without any boxes or "question mark diamonds".
Unfortunately since I am learning C at the same time as I'm writing TuWiM it escapes me how to do it for now. Do I use wchars/wstrings? Or is it completely different kind of Unicode (UTF-16/UTF-32)? To be honest I am confused, so any guidance would be helpful.