Hey Peter Thanks. Ticket is filed: http://trac.mach-ii.com/machii/ticket/763
Cheers, delijah On 27 Mrz., 21:03, "Peter J. Farrell" <[email protected]> wrote: > How are you reading in your .properties files? I use UTF-8 and > .properties files on Mach-II just fine -- I have a site that is EN and > FR. If you're using 1.9 i18n features, we are using > "java.util.PropertyResourceBundle" via a "java.io.FileInputStream" to do > our property loading. This the most common way to load properties in > have. .Properties files by spec have an encoding of ISO-8859-1 and > character above 128 are encoded using escaping. Most of the tooling > available for managing .properties files only suppor ISO-8859-1. > > http://en.wikipedia.org/wiki/.properties > > Most people use tools to encode the .properties files into ASCII. There > is a native tool that is bundled with the Java JVM called native2ASCII. > > http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/native2... > > Personally, I just encode them to ASCII in my ANT build process. > > http://ant.apache.org/manual/Tasks/native2ascii.html > > I can look into using the "java.io.FileReader" instead so we can support > UTF-8 directly. Could you file a ticket for me -- otherwise I might > forget... > > .pjf > > delijah said the following on 03/27/2011 01:34 PM: > > > > > > > > > > > Hey folks > > > Again me and again a issue with encoding :) > > > I'd like to encode my .properties files in the utf-8 encoding. > > If i do so, the output looks awful. > > In ISO-8859-1 it looks fine. > > But still: i want to use utf-8! :) > > > I just found this post which explains a little bit how it could work: > >http://globalizer.wordpress.com/2007/02/08/property-resource-bundle-e... > > (Relevant part at the bottom: "Update: With Java 6 you can use > > PropertyResourceBundle constructed with a Reader, which can use UTF-8 > > directly.") > > > Any reasons why not integrating reading of .properties files in MachII > > like that? > > > Cheers, > > > delijah > > -- > Peter J. Farrell > [email protected] > [email protected]http://blog.maestropublishing.com > Identi.ca / Twitter: @maestrofjp -- To post to this group, send email to [email protected] For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
