1
I have a programming project that was to develop a replica of the naval battle game. however I did all the program on Linux(Ubuntu 16.04) however my teacher uses windows (using codeblocks) and to ensure I went to test the same in windows I had already added to locale.h
and the setlocale(LC_ALL, "portuguese")
and at first the character ç
appeared normal, but the letters a
, i
... accented whether they are capitalized or not they all go crazy. the Program is divided into several files and some printf
are in other files. the setlocale
is just at the beginning of main()
.
Confirm that Codeblocks has
encoding
correct inSettings -> Editor -> General settings -> Encoding Settings
– Isac