hzzc1987 / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

build warnings due to special characters #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
when building I get a bunch of warnings on my machine:

sources/com/ochafik/swing/syntaxcoloring/TextAreaDefaults.java:56: warning:
unmappable character for encoding UTF8
        {*/ // on est oblig� de cr�er un objet nouveau � chaque fois
                           ^
You may want to avoid non ASCII characters in source and comments.

Original issue reported on code.google.com by everf...@gmail.com on 13 Jun 2009 at 7:58

GoogleCodeExporter commented 8 years ago
Indeed, we should escape chars before writing the content of Java files.
Thanks !

Original comment by olivier.chafik@gmail.com on 13 Jun 2009 at 9:26

GoogleCodeExporter commented 8 years ago
Should be fixed by this checkin : 
http://code.google.com/p/jnaerator/source/detail?r=442 (uploaded build 419)

Please let me know if it works for you... 
Thanks

Original comment by olivier.chafik@gmail.com on 15 Jun 2009 at 8:58

GoogleCodeExporter commented 8 years ago
I believe the output of the program is not a problem, I was referring to the 
source
code and comments itself. It's just warnings but should be handled nevertheless.
For example:
ources/com/ochafik/swing/syntaxcoloring/TextAreaDefaults.java:56: warning: 
unmappable
character for encoding UTF8
        {*/ // on est oblig� de cr�er un objet nouveau � chaque fois

Original comment by everf...@gmail.com on 16 Jun 2009 at 1:48

GoogleCodeExporter commented 8 years ago
Yes, I guess the classes won't be an issue, but the JavaDoc would be crambled...
Anyway, the sources output ought to be proper Java, and Java needs latin-1 or 
unicode-
encoded source files 
(http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/native2ascii.html).

Were you able to test the (hopefully) fixed version with your source input ?
Cheers

Original comment by olivier.chafik@gmail.com on 16 Jun 2009 at 5:07