RetroFed Forums
Your home away from modern life.
how would one go about making a UTF-8 aware (or supported) program in C?
Post Reply
AuthorMessage
BlackRoseAmongThorns slrpnk.net BlackRoseAmongThorns@slrpnk.net
Joined: 2024-01-07
Quote

I don't have an example or goal to work with, this is mostly a hypothetical for learning purposes.

Besides some basics for how to handle UTF-8 strings in general (as one can glean from other languages' documentation), what types/libraries/documentation exists for handling UTF-8 text in C?

6   Original
eleijeep piefed.social eleijeep@piefed.social
Joined: 2025-09-22
#2 · Quote Reply

You could use GLib which has a gunichar type and a bunch of functions for operating on them

6
DahGangalang infosec.pub DahGangalang@infosec.pub
Joined: 2023-07-15
#3 · Quote Reply

Never done this, so did some research. Hope this helps put you on the right track!

https://stackoverflow.com/questions/526430/c-programming-how-can-i-program-for-unicode

https://www.cprogramming.com/tutorial/unicode.html

4
Post Reply
Back to top