I am searching for a method to get a single unicode character from the standard input. Recently, I saw this topic in which the solution does not apply for unicode characters but only ASCII ones.
Using the function getch()
cited in the mentioned topic, when the user types an unicode character, it is represented as more than one ASCII characters. In fact, getch()
only returns the first part (byte). The remaining bytes are only accessible using getch()
again (however I do not know how to know how many bytes remain).
Is there a way to actually get a single unicode character from the input?
Thanks!