Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4648

CpeBuilder writes descriptor in system encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0uimaFIT
    • 2.2.0uimaFIT
    • uimaFIT
    • None

    Description

      CpeBuilder writes descriptor in system encoding. It should write in UTF-8 as that is also the encoding specified in the XML file.

      Problematic code:

          BufferedWriter out = null;
          try {
            out = new BufferedWriter(new FileWriter(tempDesc));
            resource.toXML(out);
          } finally {
            IOUtils.closeQuietly(out);
          }
      

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: