|
-
November 4th, 2010, 05:12 AM
#1
[C++] East European Fonts - Windows console
Hello,
I'm trying to write a program, which uses east european characters when writing/reading. Any basic program, like:
Code:
#include <iostream>
#include <string>
using namespace std;
int main(){
cout << "ĄĄĄĄĄŻŻŻŻ"<<endl;
return 0;
}
Puts to console something like: "ñññññ╜╜╜╜" (when the source file is coded as OEM 852) and like "ÑÑÑÑÑ»»»»" (when the source file is coded as Windows-1250).
My console says:
Code:
C:\>chcp
Active code page: 437
I've tried using locales (setlocale(LC_ALL, "Polish") doesn't work), using OemToChar and CharToOem (without any result).
I believe there is a very simple solution to this one, however, I've never worked in codepage subject, so for me it's quite new issue.
I'd be very grateful for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|