Article View: borland.public.jbuilder.java.language
Article #8223Re: Unicode Conversion - More problem definition
From: Joi Ellis [TeamB]
Date: Sat, 14 Apr 2001 00:12
Date: Sat, 14 Apr 2001 00:12
28 lines
1955 bytes
1955 bytes
Harry Whitehouse <harry@envmgr.com> wrote: > I thought I would be cute and write a conversion routine to migrate the > unicode characters back to the original 8 bit bytes. But my little test > program shows that a several of 8 bit values in the x80 through x9F range > are translated to the same unicode value! For instance > \x81 = \uFFFD > \x8D= \uFFFD > \x8F= \uFFFD > \x90= \uFFFD > So it appears I must find a way to read these bytes "correctly" from the > get-go! Any ideas would be appreciated! Yikes. I think there's more conversions going on than you realize. You said in your previous post that, for instance, there is a sequence of four bytes which came from an int, and you want to change that back to an int. If that is the case, why are you passing it through a Unicode conversion? I think you need to take a look at DataInputStream. -- Joi Ellis (TeamB) No direct email, please. For best results, post on news server newsgroups.borland.com! Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<3ad79606_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mailReferences:
<3ad4f06c$2_2@dnews> <MPG.154086682953719398a11d@forums.borland.com> <3ad771e7_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,eba31f969c5fae3c
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-13 17:44:02 PST
Message-ID: <3ad79606_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Unicode Conversion - More problem definition
Newsgroups: borland.public.jbuilder.java.language
References: <3ad4f06c$2_2@dnews> <MPG.154086682953719398a11d@forums.borland.com> <3ad771e7_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 13 Apr 2001 17:12:55 -0700
X-Trace: dnews 987207175 209.46.41.66 (13 Apr 2001 17:12:55 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail