You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2015/10/14 21:14:05 UTC
[jira] [Created] (UIMA-4648) CpeBuilder writes descriptor in system
encoding
Richard Eckart de Castilho created UIMA-4648:
------------------------------------------------
Summary: CpeBuilder writes descriptor in system encoding
Key: UIMA-4648
URL: https://issues.apache.org/jira/browse/UIMA-4648
Project: UIMA
Issue Type: Bug
Components: uimaFIT
Affects Versions: 2.1.0uimaFIT
Reporter: Richard Eckart de Castilho
Assignee: Richard Eckart de Castilho
Fix For: 2.2.0uimaFIT
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:
{noformat}
BufferedWriter out = null;
try {
out = new BufferedWriter(new FileWriter(tempDesc));
resource.toXML(out);
} finally {
IOUtils.closeQuietly(out);
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)