Alt signs

I will have ╔ insted of É then use alt+201

in dev-cpp, how to do that ??
But what is your question?
You could probably change your keyboard layout, if that's what you're asking, but I'm not sure what the question is...

Also, dev-cpp is pretty outdated(afaik), I'd go with Code::Blocks or MS Visual Studio
Try this

1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <locale>

int main()
{
	std::locale::global(std::locale(""));
	std::cout << "É" << std::endl;

	return 0;
}
It's a code page issue. You have to set the correct code page on the console before being able to output things like that.

(And you have to output the correct character codes. For example, on the default console [code page 1252], the code for É is '\x90'.)

You need to adjust for one or both.
Thanks for all answer.

mobotus: That works in main, but how do i so it work then i call an void function ?

Duoas: How to change console's ?

MatthewRock: yes, but how to change your keyboard layout ?
I will have ╔ sign insted of 'É' then use alt+201 in dev-cpp
Topic archived. No new replies allowed.