Emilio Hernández
Emilio Hernández

Reputation: 41

CLion can't show accents and "ñ "

When I compile a code with a text in Spanish the accents always show like weird symbols. The file encoding is UTF-8 and the editor is configured in Spanish also.

The code:

#include "iostream"
using namespace std;
int main(){
    printf("niño á é í ó ú");
    return 0;
};

Output in the terminal:

ni├▒o ├í ├® ├¡ ├│ ├║

enter image description here

Please tell me if it is possible to change this, it's too annoying.

I've change the file encoding and the editor language and nothing works.

OS: Windows

Upvotes: 3

Views: 42

Answers (0)

Related Questions