Idea Details

Plex Java - Allow resource loading from specified charset / encoding

Last activity 10-19-2015 02:50 AM
Anon Anon's profile image
10-17-2015 04:11 AM

Need an option in files to specify the charset/encoding of the resource files (.panelresource, .resource)








According to the Java Standard resource files should be encoded in ISO-8859-1 (characters not included in ISO-8859-1 have to be unicode escaped). Most Java apps developed today are using UTF-8 nevertheless.


Plex Runtime uses the Java default encoding to load resource files. On a Windows machine this works in most cases.

BUT when we move an application to Linux we run into problems. Linux will assume UTF-8 encoding as the default. As a workaround we can start a VM under Linux with the -Dfile.encoding=ISO-8859-1. This works as long as the Plex application is the only application in a container. If we deploy an app to let's say to an existing instance of Tomcat, we are out of luck.



Option should be added to all .properties files (,, Option also allows to convert the Plex generated resource files to UTF-8 and then use ResourceFileEncoding=UTF-8 on WIndows.


Plex Runtime should never rely on a Java default encoding. This is just bad practice and is a Java design flaw.


10-19-2015 02:50 AM

We need a new icon to declare an idea as Important, Very Important...