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/11/13 21:50:10 UTC

[jira] [Commented] (UIMA-4648) CpeBuilder writes descriptor in system encoding

    [ https://issues.apache.org/jira/browse/UIMA-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004691#comment-15004691 ] 

Richard Eckart de Castilho commented on UIMA-4648:
--------------------------------------------------

Fix confirmed by user.

> 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)