How to print UTF-8 characters on console using C

I have a C application where I get a UTF-8 string as a socket as char *. Now I want to print it to the console using the Eclipse CDT. How can i do this? I usually get something like "Günther", which should be "Günther"

Many thanks.

+5
source share
1 answer

The best answer given above was Joachim Isaksson. Thanks, this idea seems to be a problem. I solved this in Eclipse by setting the Encoding options for the launch configuration in UTF-8.

enter image description hereenter image description here

+2
source

All Articles