-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi folks,
I failed to process UTF8 encoded files.
I hunt down the problem, which is in XPathTermMapProcessor.java.
In line 59-60 following is defined:
StringBufferInputStream input = new StringBufferInputStream(node.toXML().toString());
Since Java 7 this stream is marked as deprecated because it can not convert correctly between char and bytes. doc
So please replace this line with something like
ByteArrayInputStream input = new ByteArrayInputStream(node.toXML().getBytes());
Greetings
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels