Skip to content

Make all text parsing done in UTF-8 #2

@darkhog

Description

@darkhog

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions