Am 20.09.2011 14:31, schrieb Martin Grigorov:
On Tue, Sep 20, 2011 at 3:26 PM, Christian Huber<hub...@butterbrot.org>  wrote:
Just a short addition, the resource bundle editor plugin for eclipse is
great for handling .properties files with UTF-8 characters. The files are
stored with ISO encoding and UTF-8 characters are escaped correctly while
you can use the unescaped in the editor.
This is an option but not a good one. In my experience the developers
support only the English version of the bundle and the people who
translate to the other languages are not Eclipse (or any other IDE)
users.
The XML is the most convenient, I think.
In such situations you are right, an eclipse plugin is not suitable if resources should be created by non-developers. But in my experience that means such resources are created by members of the business departement and most xml files that we receive from those have issues like binary garbage in prolog (apart from BOM) or invalid use of xml entities etc. In such a scenario I would recommend the use a proper CMS if possible. But I guess that is another topic ;-)

The Sanity Resort<http://sanityresort.blogspot.com/>

Am 20.09.2011 13:50, schrieb aabfattah:
Well , the xml file didn't load and it loaded the default .properties
files
from wicket
But the first trick worked :)

On 20 September 2011 13:41, Martin A [via Apache Wicket]<
ml-node+s1842946n3826499...@n4.nabble.com>    wrote:

Hi, Ahmed,

As the Java specification defines, the .properties file contains only
characters in ISO-8859-1, also known as Latin-1. Therefore you cannot
enter

arabic characters in a properties file.

You have two options here:

    1. Unicode escape your arabic characters, using converters, like this
one
    here>    http://www.rishida.net/tools/conversion/ (what works for you
    appears under JavaScript escapes) or
    2. Use an xml file for language properties.

Regards,
Martin

On Tue, Sep 20, 2011 at 1:53 PM, aabfattah<
[hidden email]<http://user/SendEmail.jtp?type=node&node=3826499&i=0>>
wrote:

Hello ,
I have written many .properties pages to show error messages in Arabic
and
saved them in UTF-8 format and they display like that :
يجب ادخال اسم الدخول
*Although I wrote all HTML in Arabic and it displays correctly
*
I am using Eclipse Helios and I set workspace encoding to UTF-8

--
View this message in context:

http://apache-wicket.1842946.n4.nabble.com/Arabic-characters-not-appearing-correctly-from-properties-file-tp3826406p3826406.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden
email]<http://user/SendEmail.jtp?type=node&node=3826499&i=1>
For additional commands, e-mail: [hidden
email]<http://user/SendEmail.jtp?type=node&node=3826499&i=2>


------------------------------
  If you reply to this email, your message will be added to the discussion
below:


http://apache-wicket.1842946.n4.nabble.com/Arabic-characters-not-appearing-correctly-from-properties-file-tp3826406p3826499.html
  To unsubscribe from Arabic characters not appearing correctly from
.properties file, click
here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3826406&code=YWhtZWQuYWJkZWxmYXR0YWguZWxzaGVtaXN5QGdtYWlsLmNvbXwzODI2NDA2fDI4MjAxMzAzNQ==>.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to