Ticket #500 (new Defect)

Opened 7 years ago

Last modified 6 years ago

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:1 Changed 7 years ago by jri

  • Module set to deepamehta-assemblies

comment:2 in reply to: ↑ description Changed 7 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 7 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

comment:4 Changed 6 years ago by jri

  • Milestone Release 4.1.4 deleted
Note: See TracTickets for help on using tickets.