|
|
|
|
Re: Avoiding Eclipse top-bit-set "mangling" [message #42327 is a reply to message #39440] |
Wed, 28 May 2003 02:48 |
Eclipse User |
|
|
|
Originally posted by: KingD.tmicha.net
"Tim Tyler" <tim@tt1.org> wrote in message
news:bat4o4$3es$1@rogue.oti.com...
> "Jon Skeet" <skeet@pobox.com> wrote in message
> news:MPG.193af2a4daa65b3b9897ec@news.eclipse.org...
> > Tim Tyler <tim@tt1.org> wrote:
> > > The Eclipse (2.1) editor apparently "mangles" several top-bit-set
> > > characters - if you attempt to load a text file containing them and
> > > then save it again.
> > >
> > > My question is if there is any chance that there's a way around
> > > this using a plug-in editing component - instead of the default
> > > text editor - or perhaps by marking text files as binary -
> > > or something.
> >
> > What character set do you have as your default encoding? I would have
> > thought if you used ISO-8859-1 as the encoding, all should be well.
>
> I don't know how to find out what character set Eclipse is using -
> or how to change it.
Preferences > Workbench > Editors
> The hypothesis that encoding is involved seems fair - one of the
> mangled characters is 0x8F - slap in the middle of the
> "ASCII international danger zone".
It is not a danger zone, but the zone where Microsoft decided to "innovate"
and diverge from standard ISO8859-1.
> The mangled characters are apparently all displayed by Eclipse as
> rather large, empty grey rectangles - before it mangles them.
What exactly did you expect it to display for an 0x8F? If your encoding is
set to Cp1252 what you describe is eactly what I would expect to happen as
0x8F (along with 0x81, 0x8D, 0x90, and 0x9D) are undefined in Cp1252 and
therefore have no meaning. When reading in it is most likely converted to
the \uFFFD replacement character which is then converted to a ? upon
writing.
While the ISO8859-1 encoding probably will not change the value, I'm not
sure what you expect it to display there as it is a non-printable control
character.
> FWIW, I'm running on an international Sun 1.4.2 beta JDK.
--
Dale King
|
|
|
|
Powered by
FUDForum. Page generated in 0.03883 seconds