Unmappable character for encoding UTF8

When building / compiling a Java application with Ant, the warning:

warning: unmappable character for encoding UTF8

indicates, that the compiler cannot recognize characters on the source files, this is normaly due of using a diferent encoding in the compiler (javac ant task).

This can be solved by specifying the same encoding used on the source files (ISO-8859-1).

On the ant task, in the command line starting with <javac it has to be added the property encoding=”8859_1″

Otros artículos de esta serie:

[seriesposts show_date=0 order=asc]

Publicar un Comentario

Si es la primera vez que escribes, tu comentario será moderado por un administrador.

Con el fin de garantizar un ambiente de debate respetuoso, no se permitirán comentarios:

  • insultantes, difamatorios, racistas, sexistas, y/o discriminatorios
  • excesivamente críticos con otros participanes
  • que no aporten nada, sin sentido o repetidos
  • con enlaces considerados publicidad o spam
  • con material protegido por derechos de autor
*
*