Probably a very simple question, but I've been searching for a while and haven't been able to answer it.
In my program, I need to get text from the user. I didn't have any problems until I tried typing the '-' character, which returned a value of 276. According to the Unicode tables I've seen, it should have been 45. Quite a few other characters also appear to not match up. So, I'd like to know if there is a different table that matches up with these different values, or simply a way to convert.
Also I'd like to know if there is an existing way to find what a character should be if pushed with the shift key down. (Minor, already have a solution, just somewhat messy)