Hi Julien,
On Tue, Feb 4, 2014 at 8:53 AM, Julien Plu
<[email protected]> wrote:
> Thank you that link helped me a lot and it works pretty well. Unless for
> one thing, all the .java files created by schemagen are encoded in Windows
> encoding, I think it's cp1252, and throw me some warnings at the
> compilation step :
>
> "unmappable character for encoding utf-8"
>
> Because all my other files are encoded in UTF-8 and my args for the
> "maven-compiler-plugin" are :
>
> <configuration>
>        <source>1.7</source>
>        <target>1.7</target>
>        <encoding>UTF-8</encoding>
>        <argLine>-Dfile.encoding=UTF-8</argLine>
> </configuration>
>
> And this as properties :
>
> <properties>
>     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>
> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
> </properties>
>
> So there is a way to configure the schemagen plugin to create java files
> encoded directly in UTF-8 ?

Hmm. This is not currently possible in schemagen - I would need to add
a configuration option to set the output file encoding. Recorded as
JENA-636

https://issues.apache.org/jira/browse/JENA-636

Can you please attach a fragment of the ontology that you're
translating to that JIRA item, so that I have a realistic test case?

As a workaround, you can use iconv[1] (Linux, Mac or cygwin) to change
the character encoding of a file.

Thanks,
Ian

[1] http://en.wikipedia.org/wiki/Iconv

Reply via email to