Article View: borland.public.jbuilder.java.language
Article #7611Re: Sockets and BufferedReader (again)
From: Tim Dietz
Date: Wed, 13 Jun 2001 13:22
Date: Wed, 13 Jun 2001 13:22
26 lines
1796 bytes
1796 bytes
I had the same problem and ended up using the BufferedInputStream. Tim "Bill" <shayw@uwgb.edu> wrote in message news:3b276482$1_1@dnews... > > I've set up a socket connection between a java client and > non-java server. To read from the socket I use a bufferedReader > object instantiated from an inputStream obtained from the > socket. I then use the read(char[], int, int) method to pick > up a variable number of characters from the inputStream. > Everything works OK -- most of the time. It appears that when > the incoming bytes in the stream have values less than 0x80 or > greater than 0xA0, the proper value is read. For any value in > between the byte value is converted to hex 3F. I suspect it > has something to do with the filter classes and the definition > of the unicode but haven't been able to find any specifics. > Has anyone see this sort of problem? > > > Thanks > > > Bill >
Technical Details
Message-ID:
<3b276952$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b276482$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,9d994d5e9f7d3fc3 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-13 06:42:40 PST From: "Tim Dietz" <tdietz@telena.com> Newsgroups: borland.public.jbuilder.java.language References: <3b276482$1_1@dnews> Subject: Re: Sockets and BufferedReader (again) Date: Wed, 13 Jun 2001 06:22:46 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 207.110.36.206 Message-ID: <3b276952$1_2@dnews> X-Trace: dnews 992438610 207.110.36.206 (13 Jun 2001 06:23:30 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews