Anarki a écrit :
> excuse me what u mean by properly configured console? I think i
> haven't done any configuring can you please guide me am a novice in
> configuring this cygwin all these days i was in visual studio,
I mean your console should be configured to display unicode.
echo "$LC_ALL"
Should tell you if you have the good locale.
> hope u
> will help me and by the way the posted program didn't work
.
I guess you will find tutorial for your language somewhere on the web.
> The
> language i used was malayalam, language of Kerala/India.
#include <cwchar>
#include <clocale> //for setlocale
#include <cstdlib> //for SUCCESS
int main()
{
wchar_t mal[] = L"ദീപ്*ചന്ദ്* പി";
//loacale for malayalam is ml_IN
//if you use the UTF8 flavor, ml_IN.UTF8
std::setlocale( LC_ALL, "ml_IN" );
std::wprintf(mal);
return EXIT_SUCCESS;
}
--
Michael