I'm working on a program in C, I need to be able to get the code of a character, but in the case of an accented character like "á", it must return the code of the character "a" and the accent (´).
in:
á
out:
"á"=C3 A1
"a"=61
"´"=C2 B4
Is there a way to get the accent? This should work for any type of combining characters (acute, grave, diaeresis, circumflex ...)
In some projects I have used iconv to convert between encodings, but I don't know how to solve this problem.
Or is it possible with iconv to do that? Something like
in: cómo estás, niño?
out c´omo est´as, ni~no?