Menu

Matcher.toString wrong entity handling

Help
2003-04-29
2003-04-30
  • Nobody/Anonymous

    Hi
    I have a problem with the Mather.toString methode

    The Matcher finds a Expression like -
    "some text, text&#228text&#246"...

    it's all ok
    but the toString methode changes it in
    "some text, text&#228text&#246"...

    you see - its changes &#228 to &#228

    bug??

    if somebody knows a solution - thx in advantage

    greettings
    mikael

     
    • Sergey A. Samokhodkin

      It seems to me that problem is in your code.
      Give a sample please.

       
    • Nobody/Anonymous

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.