Better use .properties.xml format.
The XML properties files are much more safe than plain .properties.

See http://java.sun.com/dtd/properties.dtd and
java.util.Properties.loadFromXML(InputStream)

On Tue, Sep 20, 2011 at 2:24 PM, aabfattah
<ahmed.abdelfattah.elshem...@gmail.com> wrote:
> The problem maybe in
> *IsoPropertiesFilePropertiesLoader*
> *In the API it says *Load properties from properties file. The encoding of
> the file must be ISO 8859-1.
>
> *
> *
> On 20 September 2011 13:22, Ahmed Abdelfattah <
> ahmed.abdelfattah.elshem...@gmail.com> wrote:
>
>> I get this info always in console :
>> INFO  - PropertiesFactory          - Loading properties files from
>> file:/D:/Ahmed_sandbox/Projects/EclipseProj/call-to-fix-17-9-5PM/call-to-fix/target/classes/com/orange/cairolab/sdp/calltofix/web/customer/AddNewCustomerPage.properties
>> with loader
>> org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@15f1ace
>> INFO  - PropertiesFactory          - Loading properties files from
>> jar:file:/C:/Users/Master/.m2/repository/org/apache/wicket/wicket-core/1.5-RC5.1/wicket-core-1.5-RC5.1.jar!/org/apache/wicket/Application.properties
>> with loader
>> org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@15f1ace
>>
>> On 20 September 2011 13:21, Ahmed Abdelfattah <
>> ahmed.abdelfattah.elshem...@gmail.com> wrote:
>>
>>> I am using
>>> jdk1.6.0_23
>>>
>>> On 20 September 2011 13:19, Martijn Dashorst [via Apache Wicket] <
>>> ml-node+s1842946n3826458...@n4.nabble.com> wrote:
>>>
>>>> This also only works on Java 6 and newer (UTF-8 support for properties
>>>> files is a java 6 feature).
>>>>
>>>> Martijn
>>>>
>>>> On Tue, Sep 20, 2011 at 12:53 PM, aabfattah
>>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=3826458&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=3826458&i=1>
>>>> > For additional commands, e-mail: [hidden 
>>>> > email]<http://user/SendEmail.jtp?type=node&node=3826458&i=2>
>>>> >
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden 
>>>> email]<http://user/SendEmail.jtp?type=node&node=3826458&i=3>
>>>> For additional commands, e-mail: [hidden 
>>>> email]<http://user/SendEmail.jtp?type=node&node=3826458&i=4>
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>>  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-tp3826406p3826458.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==>.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Ahmed Abdelfattah
>>>
>>>
>>>
>>
>>
>> --
>> Ahmed Abdelfattah
>>
>>
>>
>
>
> --
> Ahmed Abdelfattah
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Arabic-characters-not-appearing-correctly-from-properties-file-tp3826406p3826476.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



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

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

Reply via email to