4
I am using the GCC compiler version 5.3 for the following program, written in Aptana:
#include <stdio.h>
void main(void)
{
int positivo = 32767;
int negativo = -32768;
printf("%d +1 é %d\n", positivo, positivo+1);
printf("%d -1 é %d\n", negativo, negativo-1);
}
With the following output:
Already in the text block, with the following:
How should I proceed to have the characters displayed correctly ?
Probably compatibility problems of terminal "encodings", text editors... (in which environments are you?)
– JJoao
Thank you for your attention, what do you mean by "environments"? @Jjoao
– MagicHat
In windows, command line, you can define which charset to use (example windows-CP1252, Unicode-utf8, etc.) in the text editors you can select the carser/encoding (example ansi, etc.). Under linux and mac settings have more reasonable starting values but are also configurable. Suggestion to switch everything to the same charset/encoding -- maybe Unicode-uft8.
– JJoao