[ 
https://issues.apache.org/jira/browse/WICKET-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760884#action_12760884
 ] 

Ilja Pavkovic commented on WICKET-2451:
---------------------------------------

this change breaks with the contract defined at 
http://java.sun.com/javase/6/docs/api/java/util/Properties.html: 

"The load(Reader) /  store(Writer, String)  methods load and store properties 
from and to a character based stream in a simple line-oriented format specified 
below. The load(InputStream) /  store(OutputStream, String)  methods work the 
same way as the load(Reader)/store(Writer, String) pair, except the 
input/output stream is encoded in ISO 8859-1 character encoding. Characters 
that cannot be directly represented in this encoding can be written using 
Unicode escapes  ; only a single 'u' character is allowed in an escape 
sequence. The native2ascii tool can be used to convert property files to and 
from other character encodings. "

> Add ability to load UTF-8 encoded properties not in XML format.
> ---------------------------------------------------------------
>
>                 Key: WICKET-2451
>                 URL: https://issues.apache.org/jira/browse/WICKET-2451
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4.1
>         Environment: ALL
>            Reporter: Olivier Bourgeois
>            Priority: Trivial
>             Fix For: 1.4.2, 1.5-M1
>
>         Attachments: patch.txt, PropertiesFactory.java
>
>
> In Wicket 1.4.x if you want to use UTF-8 to encode your localization 
> properties, you have to switch to the XML properties format. This is mainly 
> because Wicket PropertiesFactory use native Java Properties that cannot 
> handle anything else than ISO in versions prior to JDK 6.
> After some discussion on the user mailing list I made this patch which is 
> inspired on one hand by Tapestry 5 which allows to use UTF-8 in property 
> files (that works also in T4, but differently) and on the other hand by 
> Spring that uses the JDK 6 features when available.
> IMHO XML is a burden here and adds nothing of value in the management of 
> properties.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to