That looks suspect, especially the empty LANG. The output on my Ubuntu
development box where I have never encountered such encoding problems
looks like this

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


On Thu, 2010-04-29 at 09:04 +0700, Peter Flood wrote:
> $ locale
> LANG=
> LC_CTYPE="C"
> LC_COLLATE="C"
> LC_TIME="C"
> LC_NUMERIC="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_ALL=
> 
> 
> 
> Federico Grilli wrote: 
> > Uhm... that's weird. What does the live server say when running the
> > "locale" command from the shell? 
> > 
> > Federico
> > 
> > On Tue, 2010-04-27 at 14:04 +0200, Zdenek Skodik wrote:
> >   
> > > Well I have all in utf8. 
> > > 
> > > But by default Java property files are encoded in iso-8859-1 
> > > however this spec does not support special local characters, 
> > > the "&" char is part of it anyway so it shouldn't cause those 
> > > troubles. See [1] whether it would help you. 
> > > 
> > > I'm also not familiarized with your application server but 
> > > f.e. Tomcat also tend to encode/decode everything in iso-8859-1 
> > > by default or with Weblogic you have to enforce proper encoding
> > > by your own. In general to resolve some encoding issues, it might
> > > be useful to add the following snippet to your web.xml file. 
> > > If you haven't customized yours, you can simply copy this one:
> > > 
> > > <jsp-config>
> > >     <jsp-property-group>
> > >       <url-pattern>*.jsp</url-pattern>
> > >       <page-encoding>UTF-8</page-encoding>
> > >     </jsp-property-group>
> > > </jsp-config>
> > > 
> > > or variations of it like Dweblogic.wtc.encoding=utf8 or per file.
> > > 
> > > btw we are in the process of i18n translator so probably Federico
> > > would help you more since he's more familiarized with, in case
> > > this is the encoding issue.
> > > 
> > > 
> > > [1] http://wiki.magnolia-cms.com/display/WIKI/Encoding+property+files
> > > 
> > > 
> > > 
> > > On Tue, 2010-04-27 at 17:51 +0700, Peter Flood wrote:
> > >     
> > > > Messages file is UTF-8 no BOM with magnolia 4.2, should the messages
> > > > file be ISO-8859-1 (I thought it was), but I don't see what difference
> > > > it would make?
> > > > 
> > > > Thanks
> > > > 
> > > > 
> > > > Zdenek Skodik wrote: 
> > > >       
> > > > > hm it's weird, works ok under Ubuntu 9.10 without any special
> > > > > escape chars there. What's your version of Magnolia?
> > > > > What's the encoding of your messages file? 
> > > > > 
> > > > > http://jira.magnolia-cms.com/secure/IssueNavigator.jspa?reset=true&&query=utf-8&summary=true&description=true&body=true&pid=10000&sorter/field=issuekey&sorter/order=DESC
> > > > >  
> > > > > 
> > > > > -z
> > > > > 
> > > > > On Mon, 2010-04-26 at 15:25 +0700, Peter Flood wrote:
> > > > >   
> > > > >         
> > > > > > In a translations file, myMessages_en_us.properties, I have the 
> > > > > > following line
> > > > > > 
> > > > > >     foo.bar = Foo & Bar
> > > > > > 
> > > > > > This works fine on my mac but on the live RHEL server I get ??? 
> > > > > > foo.bar 
> > > > > > ???. I have only 2 lines with an ampersand in the file and both 
> > > > > > fail, 
> > > > > > the rest of the file is ok.
> > > > > > 
> > > > > > I don't understand as & is a valid ascii character. How should this 
> > > > > > character be escaped (I can't do testing on the live server)? A 
> > > > > > pointer 
> > > > > > to some docs would be great as I can't find anything that seems 
> > > > > > relavent.
> > > > > > 
> > > > > > Thanks
> > > > > > 
> > > > > > 
> > > > > > ----------------------------------------------------------------
> > > > > > For list details see
> > > > > > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > > > > > To unsubscribe, E-mail to: <[email protected]>
> > > > > > ----------------------------------------------------------------
> > > > > >     
> > > > > >           
> > > > > ----------------------------------------------------------------
> > > > > For list details see
> > > > > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > > > > To unsubscribe, E-mail to: <[email protected]>
> > > > > ----------------------------------------------------------------
> > > > > 
> > > > > 
> > > > >   
> > > > >         
> > > > 
> > > > ______________________________________________________________________
> > > > ----------------------------------------------------------------
> > > > For list details see
> > > > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > > > To unsubscribe, E-mail to: <[email protected]>
> > > > ----------------------------------------------------------------
> > > >       
> > > ----------------------------------------------------------------
> > > For list details see
> > > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > > To unsubscribe, E-mail to: <[email protected]>
> > > ----------------------------------------------------------------
> > > 
> > >     
> > 
> > 
> > 
> > ----------------------------------------------------------------
> > For list details see
> > http://www.magnolia-cms.com/home/community/mailing-lists.html
> > To unsubscribe, E-mail to: <[email protected]>
> > ----------------------------------------------------------------
> > 
> > 
> >   
> 
> 
> 
> ______________________________________________________________________
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to