Program with other alphabet

I am Greek and in my language the alphabet is
Capital letters:
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω 

Not capital letters:
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω 

And when i write in my code cout<<"Γεία"; it doesn't work. Other characters just pop but not the characters Γεία which i want to output.

Can anybody help me?

On linux this works fine but I'm not sure how to make it work on Windows.
@Peter87:Might be my IDE? I use CodeBlocks, what are you using?
Last edited on
You might want to try this:
To use unicode on windows console in not an easy task. I suggest to either move avay from console of at least don't use cmd.exe for that.

However, you can use WinApi:
#include <windows.h>
    const std::wstring result = L"Γεία";
    const HANDLE stdOut = GetStdHandle(STD_OUTPUT_HANDLE);
    DWORD numWritten = 0;
    WriteConsoleW(stdOut, result.c_str(), result.size(), &numWritten, NULL);

Also check this:
Last edited on
Topic archived. No new replies allowed.