Mauro
Mauro

Reputation: 11

UTF-8 , Properties File and Java / Alfresco

I have a problem with Alfresco...I developed a custom Data List, then in the properties file I have some special characters for example :

acmedl_datalistModel.property.acmedl_P.title=Priorità

I tried to translate the ' à ' in both Html code or Unicode like that for example

acmedl_datalistModel.property.acmedl_P.title=Priorit`à`

or

acmedl_datalistModel.property.acmedl_P.title=Priorit`à`

and when I visualize the Data List in Alfresco the record layout is ok like this

first image

but when I go to modify the record and the pop up is opened then is not ok like this

second image

Please I need help about that :-)

Upvotes: 1

Views: 843

Answers (1)

kinjelom
kinjelom

Reputation: 6450

Try this:

acmedl_datalistModel.property.acmedl_P.title=Priorit\u00E0

Take a look at the wiki article:

The encoding of a .properties file is ISO-8859-1, also known as Latin-1. All non-Latin-1 characters must be entered by using Unicode escape characters, e.g. \uHHHH where HHHH is a hexadecimal index of the character in the Unicode character set.

There are some tools that can help you:

Upvotes: 5

Related Questions