Results 1 to 7 of 7
  1. #1
    Saran185 is offline Member
    Join Date
    Jan 2011
    Posts
    36
    Rep Power
    0

    Default encoding value for hindi lang

    hi, am developing java application in netbeans ide. i opened text file and i have other buttons to change language lik hindi, urdu etc. i opened hindi file but hindi format is not accepting. i just get some garbbage values. can anyone know wat encoding value should be used to display hindi, urdu text. utf-8 does not support these languages. please help me. thanks.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    Saran185 is offline Member
    Join Date
    Jan 2011
    Posts
    36
    Rep Power
    0

    Default

    hi.. i have installed the hindi fonts in my system.
    but still iam not able to open the hindi text file in netbeans. I use the encoding value utf8. should i change this value to display hindi text.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Should be in UNICODE or UTF8. Save a notepad in UTF8 with Hindi text and see.
    Last edited by Eranga; 03-14-2011 at 05:53 AM.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    At the same time you can compile the source with encoding and run.

    javac -encoding UTF-8 <file-name>

  6. #6
    Saran185 is offline Member
    Join Date
    Jan 2011
    Posts
    36
    Rep Power
    0

    Default

    thanks..:-) it worked..

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. How to translate english to hindi
    By nitin_sinha in forum Advanced Java
    Replies: 2
    Last Post: 12-20-2010, 09:44 PM
  2. Replies: 2
    Last Post: 12-20-2010, 05:20 AM
  3. Replies: 14
    Last Post: 12-07-2010, 10:41 AM
  4. How to Display Hindi Characters?
    By sayan751 in forum AWT / Swing
    Replies: 1
    Last Post: 03-03-2009, 03:23 PM
  5. Some help with encoding...
    By nm123 in forum Networking
    Replies: 0
    Last Post: 04-15-2008, 12:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •