Good catch! I'll take a look. Jean, can you please send a zip of your project (just enough to recreate the scenario, no sensitive code necessary)?
Cheers, Indrajit On 08/12/09 3:48 PM, Timothy Perrett wrote: > Ahhh! That is interesting... i'd not thought of that :-) > > You'll need to specify a proper encoding type for sure otherwise maven will > just assume your platform default... for example, MacRoman. Perhaps IRC or > Josh will be able to advise... > > Cheers, Tim > > On 8 Dec 2009, at 10:02, Jean-Adrien wrote: > >> Ah ! >> >> In fact the problem did not appear when I upgraded to 1.1-SNAPSHOT but >> when I enabled maven resource filtering (which assumes all files use >> UTF-8). >> Anyway I'll look for a correct setting to have both ISO 8859-1 >> properties file and maven resource filtering enabled. >> >> >> On Dec 8, 10:41 am, Jean-Adrien<jean.vauc...@gmail.com> wrote: >>> Hello, >>> >>> I have a char encoding problem, using the localization feature of >>> lift. >>> I use the ? method of the S object in order to translate strings. The >>> localized values are in a translate_fr.properties file in the >>> resources of the project. >>> >>> Until I upgrade from lift 1.1-M6 to 1.1-SNAPSHOT everything was ok, >>> but now it seems that the following happens: >>> As specified in the java doc, the properties file is encoded using ISO >>> 8859-1. All xhtml templates in lift use UTF-8, and are interpreted in >>> UTF-8 by the browser. But it seems that the the string loaded from >>> properties file are badly translated to UTF-8 (?) >>> >>> I.e. "é" is 0xE9 in ISO 8859-1 and should turn when loaded in a String >>> by java properties into the UTF-8 bytes 0xC3 0xA9. But it is >>> interpreted some way in � (0x EF 0xBF 0xBD) >>> >>> I tried to encode my properties file in UTF-8 but I have the UTF >>> encoding (0xC3 0xA9) interpreted in ISO 8859-1. "é" become é (famous >>> French letter) in the webpage. Behaviour I understand since java loads >>> properties String using ISO-8859-1 charset >>> >>> Does anyone observed the same ? >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Lift" group. >> To post to this group, send email to lift...@googlegroups.com. >> To unsubscribe from this group, send email to >> liftweb+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/liftweb?hl=en. >> >> >> > > -- > > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.