Hi I have a problem with the Mather.toString methode
The Matcher finds a Expression like - "some text, textätextö"...
it's all ok but the toString methode changes it in "some text, text&#228text&#246"...
you see - its changes ä to &#228
bug??
if somebody knows a solution - thx in advantage
greettings mikael
It seems to me that problem is in your code. Give a sample please.
yep; your right...
it's not the Matcher.toString which do the wrong parse..
it's happening anywhere here: try { TransformerFactory xformFactory = TransformerFactory.newInstance(); Transformer idTransfrom = xformFactory.newTransformer(); FileOutputStream file = new FileOutputStream(result); idTransfrom.transform(new DOMSource(document_dom),new StreamResult(file)); file.close();
but surly that's beside this forum
so sorry, for that forwardly wrong post the admin should delete it..
thx anyway for responding...
g Mikael
Log in to post a comment.
Hi
I have a problem with the Mather.toString methode
The Matcher finds a Expression like -
"some text, textätextö"...
it's all ok
but the toString methode changes it in
"some text, text&#228text&#246"...
you see - its changes ä to &#228
bug??
if somebody knows a solution - thx in advantage
greettings
mikael
It seems to me that problem is in your code.
Give a sample please.
yep; your right...
it's not the Matcher.toString which do the wrong parse..
it's happening anywhere here:
try {
TransformerFactory xformFactory = TransformerFactory.newInstance();
Transformer idTransfrom = xformFactory.newTransformer();
FileOutputStream file = new FileOutputStream(result);
idTransfrom.transform(new DOMSource(document_dom),new StreamResult(file));
file.close();
but surly that's beside this forum
so sorry, for that forwardly wrong post
the admin should delete it..
thx anyway for responding...
g
Mikael