Reputation: 1116
I'm trying to make a simple program for my father to see on Father's Day. And I want All The characteres to appears right. I have full access to the computer where I want to execute the program and I can install anything on it. Here is my program:
#include <stdio.h>
int main(void)
{
printf("Obrigado Dad, por tudo que tens suportado. És bom e misericordioso\n e tem sempre força para acabares tudo, porque eu não duvido que consegues.\nAmo-te.\nDanny\n");
return 0;
}
The problem is that I can't make the latin charactheres appear as it should.
Upvotes: 4
Views: 288
Reputation: 41025
If you are using "Raster font" on cmd.exe
, switch to a Unicode TrueType font (eg. "Lucida Console"), and as pointed by Andrejs, save your source file in UTF8.
Upvotes: 2