Error: unmappable character for UTF-8 encoding

error: unmappable character for UTF-8 encoding Due to copyright symbol, I get this error. I am using netebans 7.2.

/** *   2006 * * This class was generated by the JAX-WS RI. * JAX-WS RI 2.2.6-2b01 * Generated source version: 2.1 * 
+9
encoding utf-8
source share
4 answers

It looks like you have two options:

  • Call the generator using the command line parameter to generate UTF-8 instead of what it uses by default. (You did not say where this file actually comes from, but I suppose the generation is under your control somewhere ...)
  • Change how Netbeans processes the file, telling it what it encodes in

Personally, I would prefer the first option, if possible - UTF-8 is a beautiful encoding "everything supports"

+5
source share

You must correctly set the encoding of the project.

Right click on your project -> Properties -> Sources -> Encoding

Windows 1252 is a good opportunity to try. It worked for me.

+7
source share

Right-click the project node in the Projects window and select Properties. In the left column, under Categories, select Sources. And set it to ISO-8859-1

+1
source share

I used all the solutions here, but the problem persists. Finally,

I solved this problem:

  • by changing the version of NetBeans ( from version 8.2 to version 11 of Apache )
0
source share

All Articles