×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    65

    problem in j2me inputStreamReader

    hi to all


    HttpConnection hc = (HttpConnection)Connector.open(url);
    InputStream is = hc.openInputStream();


    Reader reader = new InputStreamReader(is,"UTF8");

    i have a file in url with unicode characters, it sees that inputstreamreader is giving me the error with UTF8 on Series60 nokia 6600 set. without "UTF8" in inputstreamreader it is working good.

    plz tell me what is wrong with it.
    with best regards
    kmsoomro

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    I'd guess your data stream is not in UTF8.

    Graham.

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    65
    i have solve it

    Reader reader = new InputStreamReader(is,"UTF8");
    is not a valid format i think, but the correct one is
    Reader reader = new InputStreamReader(is,"UTF-8");
    it is working properly


    thanks for reply

    regards
    kmsoomro

Posting Permissions

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