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?
You could use GLib which has a
gunichartype and a bunch of functions for operating on themsave