Converting default encoding for windows to utf8

Discussion in 'Java' started by rg.iitk@gmail.com, Jun 13, 2005.

  1. Guest

    I want to run a program in java, which needs to understand utf8
    encoding, when i run from the command line the conversion of text files
    take place through ANSI encoding thats why I dont get the desired
    output. I need to basically translate text files dealing in Hindi,
    Bengali( Indic Languages).

    TIA

    Rohit Gupta
     
    , Jun 13, 2005
    #1
    1. Advertising

  2. Dale King Guest

    wrote:
    > I want to run a program in java, which needs to understand utf8
    > encoding, when i run from the command line the conversion of text files
    > take place through ANSI encoding thats why I dont get the desired
    > output. I need to basically translate text files dealing in Hindi,
    > Bengali( Indic Languages).


    Then you need to look at the InputStreamReader and OutputStreamWriter
    classes where you can specfy the translation between bytes and characters.

    --
    Dale King
     
    Dale King, Jun 20, 2005
    #2
    1. Advertising

  3. Rohit Gupta Guest

    thnx.....got it working
     
    Rohit Gupta, Jun 20, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    18,871
    Jon Skeet [C# MVP]
    Jun 9, 2004
  2. Christian Hanke

    Tomcat4: Default Page Encoding UTF8

    Christian Hanke, Nov 5, 2003, in forum: Java
    Replies:
    1
    Views:
    549
    Sudsy
    Nov 5, 2003
  3. Tejas
    Replies:
    1
    Views:
    630
    William Ahern
    Nov 14, 2007
  4. gry
    Replies:
    2
    Views:
    737
    Alf P. Steinbach
    Mar 13, 2012
  5. Replies:
    2
    Views:
    373
Loading...

Share This Page