0

Basically, what is the difference between LANG and user.language?

I've got the following java opts set:

-DLANG=de_DE.UTF-8 -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=EN

However, if my *.properties file contains an special character like äöü it's not properly formatted in my webapp.

However, if I set the proper unicode for the special character like M\u00E4ngeldaten -> \u00E4 = ä (ref: UTF-8 table) it's properly formatted.

I've also made sure my IDE uses UTF-8 as default encoding.

Why is that behaviour eventhough i've set file encoding UTF-8 for my JBoss instance AND Eclipse IDE?

0x45
  • 779
  • 3
  • 7
  • 26
  • With "I've made sure my IDE uses UTF-8 as default encoding", you mean "I'm sure the file really is UTF-8 encoded"? Try opening with eg. Notepad++ and check the Encoding. – daniu Mar 27 '18 at 13:02
  • @daniu it **is** UTF-8, even with NPP – 0x45 Mar 27 '18 at 13:13

0 Answers0