You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "oliver.stef" <ov...@gmail.com> on 2012/12/11 08:33:56 UTC

hot to set Unicoding to UTF-8

Hi all,

When i'm saving my properties file in 'UTF-8' coding, i can't see the
correct chars (image 1).
but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
(image 2).

how can i set wicket to load the properties file to use UTF-8?

Thanks!
image 1 
<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png> 
image 2 
<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png> 



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: hot to set Unicoding to UTF-8

Posted by Sven Meier <sv...@meiers.net>.
With UtfPropertiesFilePropertiesLoader you can use properties with UTF-8 
encoding, no XML involved there.

Sven


On 12/11/2012 09:42 AM, Martin Grigorov wrote:
> On Tue, Dec 11, 2012 at 8:38 AM, Sven Meier <sv...@meiers.net> wrote:
>
>> Give your file the suffix ".utf8.properties".
>
> In Wicket 6 you have to use .properties.xml as file extension when using
> the XML format.
> The XML format is supported in Wicket 1.5/JDK 1.5 too just the file
> extension there was just .xml (com.example.MyApp.xml)
>
>
>>
>> Sven
>>
>>
>> On 12/11/2012 08:33 AM, oliver.stef wrote:
>>
>>> Hi all,
>>>
>>> When i'm saving my properties file in 'UTF-8' coding, i can't see the
>>> correct chars (image 1).
>>> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
>>> (image 2).
>>>
>>> how can i set wicket to load the properties file to use UTF-8?
>>>
>>> Thanks!
>>> image 1
>>> <http://apache-wicket.1842946.**n4.nabble.com/file/n4654681/**image_1.png<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png>
>>> image 2
>>> <http://apache-wicket.1842946.**n4.nabble.com/file/n4654681/**image_2.png<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png>
>>>
>>>
>>> --
>>> View this message in context: http://apache-wicket.1842946.**
>>> n4.nabble.com/hot-to-set-**Unicoding-to-UTF-8-tp4654681.**html<http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html>
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>


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


Re: hot to set Unicoding to UTF-8

Posted by Martin Grigorov <mg...@apache.org>.
On Tue, Dec 11, 2012 at 8:38 AM, Sven Meier <sv...@meiers.net> wrote:

> Give your file the suffix ".utf8.properties".


In Wicket 6 you have to use .properties.xml as file extension when using
the XML format.
The XML format is supported in Wicket 1.5/JDK 1.5 too just the file
extension there was just .xml (com.example.MyApp.xml)


>
>
> Sven
>
>
> On 12/11/2012 08:33 AM, oliver.stef wrote:
>
>> Hi all,
>>
>> When i'm saving my properties file in 'UTF-8' coding, i can't see the
>> correct chars (image 1).
>> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
>> (image 2).
>>
>> how can i set wicket to load the properties file to use UTF-8?
>>
>> Thanks!
>> image 1
>> <http://apache-wicket.1842946.**n4.nabble.com/file/n4654681/**image_1.png<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png>
>> >
>> image 2
>> <http://apache-wicket.1842946.**n4.nabble.com/file/n4654681/**image_2.png<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png>
>> >
>>
>>
>>
>> --
>> View this message in context: http://apache-wicket.1842946.**
>> n4.nabble.com/hot-to-set-**Unicoding-to-UTF-8-tp4654681.**html<http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html>
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


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

Re: hot to set Unicoding to UTF-8

Posted by "oliver.stef" <ov...@gmail.com>.
Hi Sven ,

it didn't helped.

But thanks any way!



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681p4654685.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: hot to set Unicoding to UTF-8

Posted by Sven Meier <sv...@meiers.net>.
Give your file the suffix ".utf8.properties".

Sven

On 12/11/2012 08:33 AM, oliver.stef wrote:
> Hi all,
>
> When i'm saving my properties file in 'UTF-8' coding, i can't see the
> correct chars (image 1).
> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
> (image 2).
>
> how can i set wicket to load the properties file to use UTF-8?
>
> Thanks!
> image 1
> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png>
> image 2
> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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


Re: hot to set Unicoding to UTF-8

Posted by Maxim Solodovnik <so...@gmail.com>.
I guess you can use language files in xml format instead of properties ....


On Tue, Dec 11, 2012 at 2:33 PM, oliver.stef <ov...@gmail.com> wrote:

> Hi all,
>
> When i'm saving my properties file in 'UTF-8' coding, i can't see the
> correct chars (image 1).
> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
> (image 2).
>
> how can i set wicket to load the properties file to use UTF-8?
>
> Thanks!
> image 1
> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png>
> image 2
> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax

Re: hot to set Unicoding to UTF-8

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Yep!

On Tue, Dec 11, 2012 at 9:37 AM, Sven Meier <sv...@meiers.net> wrote:

> IIRC you have to run on Java 6 for that feature.
>
> Sven
>
>
> On 12/11/2012 09:36 AM, Ernesto Reinaldo Barreiro wrote:
>
>> Hi,
>>
>> I think to be able to use UTF-8 you have to encode the properties files as
>> XML properties files (otherwise you have to escape characters that cannot
>> be directly represented on  ISO 8859-1).
>>
>> On Tue, Dec 11, 2012 at 8:33 AM, oliver.stef <ov...@gmail.com> wrote:
>>
>>  Hi all,
>>>
>>> When i'm saving my properties file in 'UTF-8' coding, i can't see the
>>> correct chars (image 1).
>>> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
>>> (image 2).
>>>
>>> how can i set wicket to load the properties file to use UTF-8?
>>>
>>> Thanks!
>>> image 1
>>> <http://apache-wicket.1842946.**n4.nabble.com/file/n4654681/**
>>> image_1.png<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png>
>>> >
>>> image 2
>>> <http://apache-wicket.1842946.**n4.nabble.com/file/n4654681/**
>>> image_2.png<http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png>
>>> >
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.**n4.nabble.com/hot-to-set-**
>>> Unicoding-to-UTF-8-tp4654681.**html<http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html>
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> ------------------------------**------------------------------**
>>> ---------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<us...@wicket.apache.org>
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>

Re: hot to set Unicoding to UTF-8

Posted by Sven Meier <sv...@meiers.net>.
IIRC you have to run on Java 6 for that feature.

Sven

On 12/11/2012 09:36 AM, Ernesto Reinaldo Barreiro wrote:
> Hi,
>
> I think to be able to use UTF-8 you have to encode the properties files as
> XML properties files (otherwise you have to escape characters that cannot
> be directly represented on  ISO 8859-1).
>
> On Tue, Dec 11, 2012 at 8:33 AM, oliver.stef <ov...@gmail.com> wrote:
>
>> Hi all,
>>
>> When i'm saving my properties file in 'UTF-8' coding, i can't see the
>> correct chars (image 1).
>> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
>> (image 2).
>>
>> how can i set wicket to load the properties file to use UTF-8?
>>
>> Thanks!
>> image 1
>> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png>
>> image 2
>> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>


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


Re: hot to set Unicoding to UTF-8

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi,

I think to be able to use UTF-8 you have to encode the properties files as
XML properties files (otherwise you have to escape characters that cannot
be directly represented on  ISO 8859-1).

On Tue, Dec 11, 2012 at 8:33 AM, oliver.stef <ov...@gmail.com> wrote:

> Hi all,
>
> When i'm saving my properties file in 'UTF-8' coding, i can't see the
> correct chars (image 1).
> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
> (image 2).
>
> how can i set wicket to load the properties file to use UTF-8?
>
> Thanks!
> image 1
> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_1.png>
> image 2
> <http://apache-wicket.1842946.n4.nabble.com/file/n4654681/image_2.png>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>