tags:

views:

129

answers:

2
#include<wchar.h>
#include<iostream>
using namespace std;
int main(int argc,char* argv[])
{

  fputws(L"मै एक भारतीय हूँ।",stdout);
 return 0;
}

?? ?? ?????? ??? is displayed when i run it on ubuntu can anybody help me out?

+1  A: 

Make sure your terminal emulator is set to the proper encoding.

unwind
+5  A: 

Configure terminal to use Unicode.

Incognito
I have configured my terminal UTF-8 . but still it prints the same o/p
UTF-8 is an encoding method, not a code page. You need to configure your terminal to have support for the Unicode character set that contains your language specific characters.
Amardeep