UTF-8 messages in Shibboleth 3
Cantor, Scott
cantor.2 at osu.edu
Thu Mar 26 17:00:57 EDT 2015
On 3/26/15, 4:39 PM, "Maja Wolniewicz" <mgw at umk.pl> wrote:
>I put the Polish translation of error and consent messages to the messages directory - these are UTF-8 strings, but they aren't displayed properly.
>I ended up with modifying the system/conf/global-system.xml file
>to add the property p:defaultEncoding="UTF-8" to the bean id="messageSource"
>I know that all files in system directory should remain untouched.
>How should I do this properly?
File a bug basically. I see the Javadoc for the class involved and that the default encoding it uses when it loads the properties is ISO-8859.
One thing you probably could do is use XML as the property format as a workaround. It says right in the javadoc that the encoding only has to be set for "classic" format, so it's probably handling the XML properly. The format for that is in the Java JDK docs on Property files.
You could *try* copying and overriding that bean ID somewhere also but I don't know if that will work.
Happy to fix it if you file the bug though.
-- Scott
More information about the users
mailing list