|
Hi there.
I'm talking in the source code of
javax.xml.transform.TransformerFactory,
in the findFactory() method. There's a
place there when it tries to find the transformer factory
using the services API.
Lines 441-442 are:
******* START *******
BufferedReader rd =
new BufferedReader(new
InputStreamReader(is));
******* END
******* The problem is that the services API
state that the service file in WEB-INF/services must be UTF-8.
Therefore, I think that instead
of:
new InputStreamReader(is)
there should be written:
new
InputStreamReader(is,"UTF-8")
Currently, I guess that this works out well
mostly because almost everybody is using Xalan on ASCII
environments,
and when talking about english characters,
UTF-8 is kind-of similar to ASCII (if I recall right, both encodings are the
same regarding english characters).
This line causes trouble when using Xalan
on non-ASCII platforms (I tried to run it on an IBM OS/390, which uses EBCDIC as
its default encoding).
Now I have some questions, and since I'm
pretty new here (I've RTFMed already, thanks), please be kind:
1) Am I right
here?
2) If not - when &
why?
3) If yes - what now?
Opening a bug report in BugZilla?
Thanks for any reply.
- Isaac
|
- Re: Encodings bug in Xalan-J 2.2.D11? Isaac Shabtay
- Re: Encodings bug in Xalan-J 2.2.D11? Shane Curcuru
