I want to translate the ë character that I read using getch() to its corresponding UTF-8 code, 0xC3 0xAB.ChatGTP gave me a function to produce this code, based on a value of 235 for ë where in my environment getch() for ë produces 137.My environment is Windows, Code::Blocks 20.03, GNU GCC compiler.
How can I ensure that getch() returns 235 rather than 137? (And likewise for characters like ö, é etc.)Does it have to do with local environment (Dutch Windows, US keyboard)?
I've used getch() and getwchar() involving variables declared as int, unsigned int, char and unsigned char. All of these options resulted in ë given as 137 or -119, but never in 235 what I was hoping for.