I have a program that outputs a textual table using UTF-8 strings, and I need to measure the number of monospaced character cells used by a string so I can align it properly
You can also use glib which makes your live much easier when dealing with UTF-8. glib reference docs