You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Schoenberg, Lewis" <le...@hq.ileaf.com> on 2000/01/18 18:25:35 UTC
RE: NullPointerException in org.apache.xalan.xpath.xml.FormatterT
oXML .init()
Hi Scott.
Mea culpa. In fact, unknown to me, another part of our application had been
explicitly, and incorrectly, setting the file.encoding property to "utf-8",
so it wasn't VM differences that were at fault at all. I only discovered
this after a lot of discussion here this morning about the best approach to
coming up with a workaround. In fact, WJView's file.encoding is "Cp1252",
just like JView's. So the only real problem with Xalan was that it wasn't
gracefully handling unexpected file.encoding settings. So please do not add
"UTF-8" to the encoding table on our account. My apologies for any
confusion this might have caused.
-Lewis
P.S. I wasn't aware of the mailing list. Thanks for the pointer.
> -----Original Message-----
> From: Scott Boag/CAM/Lotus [mailto:Scott_Boag@lotus.com]
> Sent: Tuesday, January 18, 2000 8:02 AM
> To: Schoenberg, Lewis
> Cc: xalan-dev@xml.apache.org
> Subject: Re: NullPointerException in
> org.apache.xalan.xpath.xml.FormatterToXML .init()
>
>
>
> Hi Lewis. Yes, you should definitely send me a note direct,
> or post on the
> xalan-dev list (see http://xml.apache.org/mail.html if you
> are not already
> signed up). We are struggling with support right now, and I
> don't get a
> chance to review the AlphaWorks discussion as often as I would like.
>
> Ugh... VM differences with encoding strike again.
>
> > 1. The key "UTF-8" needs to be added to the s_revhash table, and
>
> I will do this, but what worries me is what if the
> file.encoding System
> property returns something like ISO-8859-3?? What system are
> they using?
>
> > 2. getMimeEncoding() should be made to always return either "UTF-8"
> > or "UTF-16", even if convertJava2MimeEncoding() returns null.
>
> Yep, it's supposed to, but I guess I missed. I changed:
>
> if(null != jencoding)
> encoding = jencoding;
>
> to:
>
> encoding = (null != jencoding) ? jencoding :
> DEFAULT_MIME_ENCODING;
>
> which should do the trick.
>
> I cc'd this to the xalan-dev list, which I assume should be
> OK since you
> already posted on the LotusXSL discussion list on AlphaWorks.
>
> -scott
>