Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

C++ charset


ghost's Avatar
0 0

Hello, i have little problem with charset in c++, when i want to use cout to print some strings in program, dont have problem with characters A-Z,a-z,0-9, but… because i am from czech republic, we have some special characters as ž,Å¡ (latin2). when i´ll try to use these characters, i get in output some like this : i wanna to print world: helloá (example) and i get: hello?I# etc. i cannot print these characters, what i´ll have to do? thanx and sorry for my bad english ;)


lukem_95's Avatar
Member
0 0

if you include the Windows header i think you can define the charset by using #define UNICODE but im not sure, i tried a quick google and it looked promising.


ghost's Avatar
0 0

thx you helped me so much ! ;)