Thread: Displaying other language characters

  1. #1
    Registered User
    Join Date
    Nov 2008

    Displaying other language characters

    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.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

  3. #3
    Registered User
    Join Date
    Nov 2008
    yes.I used to type docs in unicode only.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Something like this:
    int main()
        wprintf(L"Hello, world\n");
        return 0;
    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.

    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().

    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.

  5. #5
    Registered User
    Join Date
    Nov 2008
    I dont understand what you have said.The code is not working in my compiler.

  6. #6
    Registered User
    Join Date
    Aug 2008
    Belgrade, Serbia
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. displaying hex characters
    By pastitprogram in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 02:18 PM
  2. How do you check how many characters a user has entered?
    By engstudent363 in forum C Programming
    Replies: 5
    Last Post: 04-08-2008, 06:05 AM
  3. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  4. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  5. Enough language discussions.
    By VirtualAce in forum A Brief History of
    Replies: 3
    Last Post: 06-13-2004, 09:59 AM