Author Topic: How to adjust code page for Java source code import?  (Read 3966 times)


  • EA User
  • **
  • Posts: 84
  • Karma: +0/-0
    • View Profile
How to adjust code page for Java source code import?
« on: August 22, 2017, 11:48:44 pm »
I am frequently importing Java source code into class models in order to have a starting point when creating diagrams.
When doing so, then EA parses Javadoc comments into class/interface descriptions.

This is in principle a *very* good idea, however, in many comments our developers used national characters (Umlauts) and these get messed up and are replaced with several characters of gibberish each (and they are emitted such, if I re-generate/update the source file after that).

In an elder EA Manual and also an append on StackOverflow that I googled one can read about an Option in the dialog Tools -> Source Code Engineering (which looks like the one now in Start -> Preferences -> Source Code Engineering) that should allow to adjust the code page being used when reading/emitting source code. That option has apparently disappeared along the journey to v13.5. Is that option still available or is it gone?
Our source code is written using UTF-8, in case this important.


  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7826
  • Karma: +107/-20
    • View Profile
Re: How to adjust code page for Java source code import?
« Reply #1 on: August 23, 2017, 08:19:29 am »
The option for source code code page is in the project options page. (Configure | Model | Options)

Also make sure that the database you're importing into supports unicode. (ie. If you're using .eap files, ensure that if you disable JET 4 in the EA options you can't open the file at all)