You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Isaac Shabtay <is...@netvision.net.il> on 2001/10/04 01:10:14 UTC
Encodings bug in Xalan-J 2.2.D11?
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