Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javadoc error: unmappable character for encoding ASCII

Im trying to create a Javadoc but i can't.

I have written my comments in swedish så they content charachters as å,ä,ö. This is giving me over 248 erros.

Is there a way to change the encoding for the whole Project?

I have tried:

  1. Right-clicked on the project
  2. Choosed Resource
  3. Change to UTF-8
  4. Restarted Eclipse
  5. Create new Javadoc

This results in the following error:

error: unmappable character for encoding ASCII

Is there something else i can do to solve this problem?

like image 704
Spoofy Avatar asked Mar 24 '14 00:03

Spoofy


1 Answers

Specifying UTF-8 as your resource encoding is a good thing to do, but you may also perform the following:

If you generate your Javadoc using javadoc binary, you may check its -encoding parameter:

javadoc: 
usage: javadoc [options] [packagenames] [sourcefiles] [@files]
...
-encoding <name>          Source file encoding name

Using Eclipse, you may specify this option in field "Extra Javadoc options (...):" in last Wizard step (example: -encoding UTF-8).

like image 170
xav Avatar answered Sep 30 '22 18:09

xav