Sir,
I have just learnt to write Hello world programme.I want to greet people in my own mother tongue (Tamil of india) via my programme.Tell me how to display unicode fonts of tamil in my programme.
Sir,
I have just learnt to write Hello world programme.I want to greet people in my own mother tongue (Tamil of india) via my programme.Tell me how to display unicode fonts of tamil in my programme.
Does your OS / Compiler support unicode?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
yes.I used to type docs in unicode only.
Something like this:
Obviously, you'd have to replace the english words with tamil ones - I don't know what that would be, but the above code should work for ANY language.Code:int main() { wprintf(L"Hello, world\n"); return 0; }
Of course, the other question is if your text-editor that you use for producing the source file supports unicode - that I can not say. Nor if the C-library that comes with your compiler actually implements wprintf().
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
I dont understand what you have said.The code is not working in my compiler.
What compiler do you use? What are the errors that are displayed?
Don't rush with printing in your own language, learn the basics at least first.
Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
What profit hath a man of all his labour which he taketh under the sun?
All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.