Hello
jlb... I know char is between -127 and 127 that's why I though using
system("chcp 437") will allow to extended ASCII to 255.
Well.. for your
Second, "\2" is an escape sequence, so I really don't know what you're trying to accomplish there. |
is the same if I write:
printf("%c", 2); and it is the same thing
printf("\2") produces the same symbol, I mean is the same character. You should try it and see the result. Because these escape sequences I used in my game otherwise all that I printed will look something like
"?" or ";" or "$" etc..., which is an undefined behavior.
And that's why I asked the forum.. or maybe if you know how to use proper the Unicode characters and understand my question, and I believe you DID understand it.. a great answer would be more like:
Yes man, setting the system chcp 437 would never solve your problem cause that is not what you though it means.
OR
No man, this problem you can solve it by doing this and that..
Since I'm a beginner and try to finish my game with the knowledge I have until now and I arrived to a point that using my code to different OS, I saw what happen and that's why I post my problem. I am not perfect, but I know how is to have a problem and want to solve it, understand it, but I rather read the problem and if I am not sure about it and don't know the answer.. better to not share.
Everything about you said in your post I already know. Why I can have a short answer ?
However thank you for your answer. I appreciate it and I'll look forward how to proper use Unicode characters.