Issue with french accent

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with french accent

Charles Moulliard
Hi,

I have created a xxx_fr.properties file to translate labels from English to French. During the display, the french accents are removed the html page. I have tried to use in the properties file the following syntax :

table.repertory = Répertoire

but that does not help too

Regards,

Charles M.
Reply | Threaded
Open this post in threaded view
|

Re: Issue with french accent

pieber
Not sure what is the correct setting. But if you use eclipse you can try the
propedit plugin translating such chars correctly.

Kind regards, Andreas
On Aug 15, 2011 1:39 PM, "Charles Moulliard" <[hidden email]> wrote:
> Hi,
>
> I have created a xxx_fr.properties file to translate labels from English
to
> French. During the display, the french accents are removed the html page.
I

> have tried to use in the properties file the following syntax :
>
> table.repertory = R&eacute;pertoire
>
> but that does not help too
>
> Regards,
>
> Charles M.
>
> --
> View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Issue-with-french-accent-tp3744402p3744402.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
Reply | Threaded
Open this post in threaded view
|

Re: Issue with french accent

Martin Grigorov-4
Better use XML properties. There is no need to UTF encode the special
characters.
In Wicket 1.5 just rename the file to xxx_fr.properties.xml
and the structure is
<entry key="someKey">someValue</entry>

See java.util.Properties#loadFromXml() for more details.

In Wicket 1.4 the file extension is .xml.

In .properties file you need to encode the special chars as \u1234.
You can use Java's native2ascii or
http://www.wicket-library.com/wicket-examples/unicodeconverter

On Mon, Aug 15, 2011 at 2:44 PM, Andreas Pieber <[hidden email]> wrote:

> Not sure what is the correct setting. But if you use eclipse you can try the
> propedit plugin translating such chars correctly.
>
> Kind regards, Andreas
> On Aug 15, 2011 1:39 PM, "Charles Moulliard" <[hidden email]> wrote:
>> Hi,
>>
>> I have created a xxx_fr.properties file to translate labels from English
> to
>> French. During the display, the french accents are removed the html page.
> I
>> have tried to use in the properties file the following syntax :
>>
>> table.repertory = R&eacute;pertoire
>>
>> but that does not help too
>>
>> Regards,
>>
>> Charles M.
>>
>> --
>> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Issue-with-french-accent-tp3744402p3744402.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>



--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Issue with french accent

chrisco484
In reply to this post by Charles Moulliard
I was recently working for a French company where I had lots of issues
with the French accent ;)

Alf = half
en-jine = engine
inerf = enough

Sure made for some amusing moments for all involved.

I don't think Wicket can fix that though :0
 
>Hi,
>
>I have created a xxx_fr.properties file to translate labels from
English to
>French. During the display, the french accents are removed the html
page. I

>have tried to use in the properties file the following syntax :
>
>table.repertory = R&eacute;pertoire
>
>but that does not help too
>
>Regards,
>
>Charles M.
>
>--
>View this message in context: http://apache-
>wicket.1842946.n4.nabble.com/Issue-with-french-accent-
>tp3744402p3744402.html
>Sent from the Users forum mailing list archive at Nabble.com.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]