[ http://issues.apache.org/jira/browse/MYFACES-230?page=comments#action_65691 ] Kalle Korhonen commented on MYFACES-230: ----------------------------------------
The patch breaks characters represented with full 8-bits in Latin-1 character set for obvious reasons (while the actual character code is the same in both Latin-1 and UTF-8, only 7-bit ASCII characters are encoded as a single byte in UTF-8). So patch is invalid, need to re-think the approach. Could keep the issue open though if committers think this functionality is useful to add. > Support UTF-8 encoded property files, allow caching of properties > ----------------------------------------------------------------- > > Key: MYFACES-230 > URL: http://issues.apache.org/jira/browse/MYFACES-230 > Project: MyFaces > Type: Improvement > Versions: Nightly Build > Reporter: Kalle Korhonen > Priority: Minor > Attachments: myfaces-utf8resourcebundle.patch > > Struts supports UTF-8 encoded property files and caching of property values > with its PropertyMessageResources class. MyFaces uses standard Java > ResourceBundle and its PropertyResourceBundle, which only allows Latin-1 > encoded property files. Adding a ResourceBundle wrapper that allows UTF-8 > encoded property files doesn't break anything since all UTF-8 encoded single > byte characters are in the same positions as in Latin-1 encoding. I'll add a > patch to this bug that contains a ResourceBundle wrapper and necessary > changes to take it into use. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
