Ticket #500 (new Defect)
Wrong character encoding in DM Karaf distribution
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Critical | Milestone: | |
Component: | DeepaMehta Karaf Distribution | Version: | 4.1 |
Keywords: | Cc: | dgf, Malte | |
Complexity: | 1 | Area: | Runtime Environment |
Module: | deepamehta-assemblies |
Description
This happens if the DM Karaf distribution is installed on a server.
dgf, if I understand you right, the fix is to add one line in dm4-assemblies/dm4-server/distribution/src/main/filtered-resources/etc/system.properties:
file.encoding=UTF-8
Is this correct?
I would change it then.
Thanks for your support!
Change History
comment:2 in reply to: ↑ description Changed 11 years ago by dgf
- Milestone changed from Release 4.2 to Release 4.1.4
yes, system.properties is the right place to configure something like the file encoding
Replying to jri:
Is this correct?
comment:3 Changed 11 years ago by jri
It seems setting the encoding in system.properties has no effect.
The file.encoding property is special. It must be set while JVM start via -D, that is before the main() method is entered.
http://stackoverflow.com/questions/361975/setting-the-default-java-character-encoding