A
A
Andropov242016-12-21 13:03:48
linux
Andropov24, 2016-12-21 13:03:48

ASCII encoding does not work. There is a solution?

In general, I work through Mint, gcc out of the box. It is required to enter the ACII character code, and get the character itself at the output. I get the characters but not the ones I need, when I enter code 218, I get a question mark (?), And when I enter code 77, I get the character "M". What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony, 2016-12-21
@Andropov24

What you see on the screen is interpreted by your terminal.
I guess the terminal is expecting UTF-8, not ASCII, and is trying to interpret it accordingly.
gcc has nothing to do with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question