hi
I am using the xmlbs based wordcleaner for hour latest website
(www.variatee.nl), and i am running into some encoding issues. It seems that
the xmlbs code relies on the file.encoding system property, becouse if this
value happens to 'ASCII', encoding is scewed up.
The obvious thing would be to use the XMLBSsetEncoding() method as in:
String encoding=mmbase.getEncoding();
xmlbs.XMLBS xmlbs =new xmlbs.XMLBS("<body>" + textStr + "</body>",
xmlbsDTD);
xmlbs.setEncoding(encoding);
xmlbs.process();
unfortunately this has no effect. regardless of the value introduced by the
setEncoding() method, the filed.encoding property is used, which seens
strange to me.
Do i miss something? or should this be considered as an undesired feature of
the xmlbs code. Of corse it is not a big deal to set the file.encoding
property prior to cleaning any fields, but i think it is confusing this way,
and mmbase encoding configuration should precede java global encoding
configuration
Ernst