You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by naorye <na...@gmail.com> on 2012/01/04 12:07:41 UTC

hebrew text looks like ×׳—׳‘׳¨׳•

am using intellij for writing java web application. I am also using apache
wicket and apache Tomcat server.
When running html pages (using wicket) all my hebrew texts are looking like
׳”׳×׳—׳‘׳¨׳•׳×.

have <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> in
my header. I am hebrew speaker and my browser already set to hebrew (other
hebrew sites works fine). I believe this is something with the wicket page
generation. I builds the page from a template and several panels and I
believe this what currupt the text.

What can be the reason and How can fix it? 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4260875.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: hebrew text looks like ×׳—׳‘׳¨׳ •

Posted by Bertrand Guay-Paquet <be...@step.polymtl.ca>.
Yes this is good advice. I actually use the html header + 
setDefaultMarkupEncoding().

On 09/01/2012 1:36 PM, Sven Meier wrote:
> Hi,
>
> the header is ok, but Wicket's xml parser won't be able to infer the 
> encoding.
>
> Use IMarkupSettings#setDefaultMarkupEncoding() as Martin has suggested.
>
> Regards
> Sven
>
> On 01/09/2012 03:53 PM, Bertrand Guay-Paquet wrote:
>> After some research, I'm now using the following html "header" :
>> <!DOCTYPE html>
>> <html xmlns:wicket="http://wicket.apache.org">
>> <head>
>> <meta charset="UTF-8">
>>
>> [xmlns:wicket="http://wicket.apache.org"] is stripped by Wicket when 
>> pages are rendered by default. This header does not trigger quirks 
>> mode and is valid for html5, which also works for html4 content.
>>
>> Please correct me if this header is wrong for some reason.
>>
>> Regards,
>> Bertrand
>>
>> On 09/01/2012 7:52 AM, Richard W. Adams wrote:
>>> HTML files should not have have an XML header. Only XHTML files should.
>>>
>>>
>>>
>>> From:   armhold<ar...@gmail.com>
>>> To:     users@wicket.apache.org
>>> Date:   01/06/2012 08:31 PM
>>> Subject:        Re: hebrew text looks like ×׳—׳‘׳¨׳•
>>>
>>>
>>>
>>> I went though this pain a few months ago too. Here are all the places I
>>> had
>>> to hit:
>>>
>>> 1. In your HTML files:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> And also in your<head>:
>>>
>>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>>>
>>> 2. For property files, if you use i18n you will need to use the foo.xml
>>> format rather than foo.properties, and also include the above<?xml
>>> version="1.0" encoding="UTF-8"?>  in each of them.
>>>
>>> 3. In your WicketApplication.java:
>>>
>>>      // wicket 1.4; perhaps different in 1.5
>>>      getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
>>>      getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
>>>
>>> 4. In your pom.xml (to cover any copied resources):
>>>
>>> <properties>
>>> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>> </properties>
>>>
>>> 5. Finally, in Intellij:
>>>
>>>      File ->  Preferences ->  File Encodings ->  IDE Encoding: UTF-8.
>>>
>>>
>>> What made this frustrating is that it always seemed to render fine with
>>> the
>>> embedded Jetty, but not with Tomcat (so things would always look great
>>> locally, but fall apart in production).
>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4271694.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
>>>
>>>
>>>
>>>
>>> **
>>>
>>> This email and any attachments may contain information that is 
>>> confidential and/or privileged for the sole use of the intended 
>>> recipient.  Any use, review, disclosure, copying, distribution or 
>>> reliance by others, and any forwarding of this email or its 
>>> contents, without the express permission of the sender is strictly 
>>> prohibited by law.  If you are not the intended recipient, please 
>>> contact the sender immediately, delete the e-mail and destroy all 
>>> copies.
>>> **
>>
>> ---------------------------------------------------------------------
>> 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
>

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


Re: hebrew text looks like ×׳—׳‘׳¨׳ •

Posted by Sven Meier <sv...@meiers.net>.
Hi,

the header is ok, but Wicket's xml parser won't be able to infer the 
encoding.

Use IMarkupSettings#setDefaultMarkupEncoding() as Martin has suggested.

Regards
Sven

On 01/09/2012 03:53 PM, Bertrand Guay-Paquet wrote:
> After some research, I'm now using the following html "header" :
> <!DOCTYPE html>
> <html xmlns:wicket="http://wicket.apache.org">
> <head>
> <meta charset="UTF-8">
>
> [xmlns:wicket="http://wicket.apache.org"] is stripped by Wicket when 
> pages are rendered by default. This header does not trigger quirks 
> mode and is valid for html5, which also works for html4 content.
>
> Please correct me if this header is wrong for some reason.
>
> Regards,
> Bertrand
>
> On 09/01/2012 7:52 AM, Richard W. Adams wrote:
>> HTML files should not have have an XML header. Only XHTML files should.
>>
>>
>>
>> From:   armhold<ar...@gmail.com>
>> To:     users@wicket.apache.org
>> Date:   01/06/2012 08:31 PM
>> Subject:        Re: hebrew text looks like ×׳—׳‘׳¨׳•
>>
>>
>>
>> I went though this pain a few months ago too. Here are all the places I
>> had
>> to hit:
>>
>> 1. In your HTML files:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> And also in your<head>:
>>
>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>>
>> 2. For property files, if you use i18n you will need to use the foo.xml
>> format rather than foo.properties, and also include the above<?xml
>> version="1.0" encoding="UTF-8"?>  in each of them.
>>
>> 3. In your WicketApplication.java:
>>
>>      // wicket 1.4; perhaps different in 1.5
>>      getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
>>      getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
>>
>> 4. In your pom.xml (to cover any copied resources):
>>
>> <properties>
>> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>> </properties>
>>
>> 5. Finally, in Intellij:
>>
>>      File ->  Preferences ->  File Encodings ->  IDE Encoding: UTF-8.
>>
>>
>> What made this frustrating is that it always seemed to render fine with
>> the
>> embedded Jetty, but not with Tomcat (so things would always look great
>> locally, but fall apart in production).
>>
>>
>> -- 
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4271694.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
>>
>>
>>
>>
>> **
>>
>> This email and any attachments may contain information that is 
>> confidential and/or privileged for the sole use of the intended 
>> recipient.  Any use, review, disclosure, copying, distribution or 
>> reliance by others, and any forwarding of this email or its contents, 
>> without the express permission of the sender is strictly prohibited 
>> by law.  If you are not the intended recipient, please contact the 
>> sender immediately, delete the e-mail and destroy all copies.
>> **
>
> ---------------------------------------------------------------------
> 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: hebrew text looks like ×׳—׳‘׳¨׳ •

Posted by Bertrand Guay-Paquet <be...@step.polymtl.ca>.
After some research, I'm now using the following html "header" :
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<head>
<meta charset="UTF-8">

[xmlns:wicket="http://wicket.apache.org"] is stripped by Wicket when 
pages are rendered by default. This header does not trigger quirks mode 
and is valid for html5, which also works for html4 content.

Please correct me if this header is wrong for some reason.

Regards,
Bertrand

On 09/01/2012 7:52 AM, Richard W. Adams wrote:
> HTML files should not have have an XML header. Only XHTML files should.
>
>
>
> From:   armhold<ar...@gmail.com>
> To:     users@wicket.apache.org
> Date:   01/06/2012 08:31 PM
> Subject:        Re: hebrew text looks like ×׳—׳‘׳¨׳•
>
>
>
> I went though this pain a few months ago too. Here are all the places I
> had
> to hit:
>
> 1. In your HTML files:
>
>      <?xml version="1.0" encoding="UTF-8"?>
>
> And also in your<head>:
>
>      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>
> 2. For property files, if you use i18n you will need to use the foo.xml
> format rather than foo.properties, and also include the above<?xml
> version="1.0" encoding="UTF-8"?>  in each of them.
>
> 3. In your WicketApplication.java:
>
>      // wicket 1.4; perhaps different in 1.5
>      getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
>      getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
>
> 4. In your pom.xml (to cover any copied resources):
>
>      <properties>
>          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>      </properties>
>
> 5. Finally, in Intellij:
>
>      File ->  Preferences ->  File Encodings ->  IDE Encoding: UTF-8.
>
>
> What made this frustrating is that it always seemed to render fine with
> the
> embedded Jetty, but not with Tomcat (so things would always look great
> locally, but fall apart in production).
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4271694.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
>
>
>
>
> **
>
> This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
> **

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


Re: hebrew text looks like ×׳—׳‘׳¨׳ •

Posted by "Richard W. Adams" <RW...@UP.COM>.
HTML files should not have have an XML header. Only XHTML files should.



From:   armhold <ar...@gmail.com>
To:     users@wicket.apache.org
Date:   01/06/2012 08:31 PM
Subject:        Re: hebrew text looks like ×׳—׳‘׳¨׳•



I went though this pain a few months ago too. Here are all the places I 
had
to hit:

1. In your HTML files:

    <?xml version="1.0" encoding="UTF-8"?> 

And also in your <head>:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

2. For property files, if you use i18n you will need to use the foo.xml
format rather than foo.properties, and also include the above <?xml
version="1.0" encoding="UTF-8"?> in each of them.

3. In your WicketApplication.java:

    // wicket 1.4; perhaps different in 1.5
    getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
    getMarkupSettings().setDefaultMarkupEncoding("UTF-8");

4. In your pom.xml (to cover any copied resources):

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

5. Finally, in Intellij: 

    File -> Preferences -> File Encodings -> IDE Encoding: UTF-8.


What made this frustrating is that it always seemed to render fine with 
the
embedded Jetty, but not with Tomcat (so things would always look great
locally, but fall apart in production). 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4271694.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




**

This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**

Re: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by armhold <ar...@gmail.com>.
I went though this pain a few months ago too. Here are all the places I had
to hit:

1. In your HTML files:

    <?xml version="1.0" encoding="UTF-8"?> 

And also in your <head>:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

2. For property files, if you use i18n you will need to use the foo.xml
format rather than foo.properties, and also include the above <?xml
version="1.0" encoding="UTF-8"?> in each of them.

3. In your WicketApplication.java:

    // wicket 1.4; perhaps different in 1.5
    getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
    getMarkupSettings().setDefaultMarkupEncoding("UTF-8");

4. In your pom.xml (to cover any copied resources):

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

5. Finally, in Intellij: 

    File -> Preferences -> File Encodings -> IDE Encoding: UTF-8.


What made this frustrating is that it always seemed to render fine with the
embedded Jetty, but not with Tomcat (so things would always look great
locally, but fall apart in production). 


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4271694.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: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by Christian Huber <hu...@butterbrot.org>.
Are you sure the file itself is saved as UTF-8 on the file system?

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

Am 06.01.2012 18:07, schrieb naorye:
> I added the<?xml version="1.0" encoding="UTF-8"?>   to all html files but I
> till get ׳—׳‘׳¨...
> any idea?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4270078.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: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by naorye <na...@gmail.com>.
I added the <?xml version="1.0" encoding="UTF-8"?>  to all html files but I
till get ׳—׳‘׳¨...
any idea?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4270078.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: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by Sven Meier <sv...@meiers.net>.
We have WebApplication#/renderXmlDecl() for that./

IIRC the markup xml declaration doesn't have an effect on the browser.

Sven

Am 04.01.2012 14:22, schrieb Martin Grigorov:
> On Wed, Jan 4, 2012 at 3:08 PM, Sven Meier<sv...@meiers.net>  wrote:
>> I think null is the most general default.
>>
>> And a proper xml file has an explicit encoding anyway.
> I remember some problems with<?xml ... ?>  in IE that assumes this is
> an XML response.
>
>> Sven
>>
>> Am 04.01.2012 13:42, schrieb Martin Grigorov:
>>
>>> Setup application.getMarkupSettings().setDefaultMarkupEncoding("UTF-8")
>>>
>>> @devs: any reason why UTF-8 is not the default ?
>>>
>>> On Wed, Jan 4, 2012 at 2:27 PM, Sven Meier<sv...@meiers.net>    wrote:
>>>> You have to make sure Wicket loads your markup with the correct encoding,
>>>> so
>>>> add an xml prologue to all your markup files:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>
>>>> Sven
>>>>
>>>> Am 04.01.2012 12:07, schrieb naorye:
>>>>
>>>>> am using intellij for writing java web application. I am also using
>>>>> apache
>>>>> wicket and apache Tomcat server.
>>>>> When running html pages (using wicket) all my hebrew texts are looking
>>>>> like
>>>>> ׳”׳×׳—׳‘׳¨׳•׳×.
>>>>>
>>>>> have<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
>>>>>   in
>>>>> my header. I am hebrew speaker and my browser already set to hebrew
>>>>> (other
>>>>> hebrew sites works fine). I believe this is something with the wicket
>>>>> page
>>>>> generation. I builds the page from a template and several panels and I
>>>>> believe this what currupt the text.
>>>>>
>>>>> What can be the reason and How can fix it?
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>>
>>>>> http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4260875.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
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Jan 4, 2012 at 3:08 PM, Sven Meier <sv...@meiers.net> wrote:
> I think null is the most general default.
>
> And a proper xml file has an explicit encoding anyway.

I remember some problems with <?xml ... ?> in IE that assumes this is
an XML response.

>
> Sven
>
> Am 04.01.2012 13:42, schrieb Martin Grigorov:
>
>> Setup application.getMarkupSettings().setDefaultMarkupEncoding("UTF-8")
>>
>> @devs: any reason why UTF-8 is not the default ?
>>
>> On Wed, Jan 4, 2012 at 2:27 PM, Sven Meier<sv...@meiers.net>  wrote:
>>>
>>> You have to make sure Wicket loads your markup with the correct encoding,
>>> so
>>> add an xml prologue to all your markup files:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> Sven
>>>
>>> Am 04.01.2012 12:07, schrieb naorye:
>>>
>>>> am using intellij for writing java web application. I am also using
>>>> apache
>>>> wicket and apache Tomcat server.
>>>> When running html pages (using wicket) all my hebrew texts are looking
>>>> like
>>>> ׳”׳×׳—׳‘׳¨׳•׳×.
>>>>
>>>> have<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
>>>>  in
>>>> my header. I am hebrew speaker and my browser already set to hebrew
>>>> (other
>>>> hebrew sites works fine). I believe this is something with the wicket
>>>> page
>>>> generation. I builds the page from a template and several panels and I
>>>> believe this what currupt the text.
>>>>
>>>> What can be the reason and How can fix it?
>>>>
>>>> --
>>>> View this message in context:
>>>>
>>>> http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4260875.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
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



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

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


Re: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by Sven Meier <sv...@meiers.net>.
I think null is the most general default.

And a proper xml file has an explicit encoding anyway.

Sven

Am 04.01.2012 13:42, schrieb Martin Grigorov:
> Setup application.getMarkupSettings().setDefaultMarkupEncoding("UTF-8")
>
> @devs: any reason why UTF-8 is not the default ?
>
> On Wed, Jan 4, 2012 at 2:27 PM, Sven Meier<sv...@meiers.net>  wrote:
>> You have to make sure Wicket loads your markup with the correct encoding, so
>> add an xml prologue to all your markup files:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> Sven
>>
>> Am 04.01.2012 12:07, schrieb naorye:
>>
>>> am using intellij for writing java web application. I am also using apache
>>> wicket and apache Tomcat server.
>>> When running html pages (using wicket) all my hebrew texts are looking
>>> like
>>> ׳”׳×׳—׳‘׳¨׳•׳×.
>>>
>>> have<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
>>>   in
>>> my header. I am hebrew speaker and my browser already set to hebrew (other
>>> hebrew sites works fine). I believe this is something with the wicket page
>>> generation. I builds the page from a template and several panels and I
>>> believe this what currupt the text.
>>>
>>> What can be the reason and How can fix it?
>>>
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4260875.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
>>
>
>


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


Re: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by Martin Grigorov <mg...@apache.org>.
Setup application.getMarkupSettings().setDefaultMarkupEncoding("UTF-8")

@devs: any reason why UTF-8 is not the default ?

On Wed, Jan 4, 2012 at 2:27 PM, Sven Meier <sv...@meiers.net> wrote:
> You have to make sure Wicket loads your markup with the correct encoding, so
> add an xml prologue to all your markup files:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> Sven
>
> Am 04.01.2012 12:07, schrieb naorye:
>
>> am using intellij for writing java web application. I am also using apache
>> wicket and apache Tomcat server.
>> When running html pages (using wicket) all my hebrew texts are looking
>> like
>> ׳”׳×׳—׳‘׳¨׳•׳×.
>>
>> have<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
>>  in
>> my header. I am hebrew speaker and my browser already set to hebrew (other
>> hebrew sites works fine). I believe this is something with the wicket page
>> generation. I builds the page from a template and several panels and I
>> believe this what currupt the text.
>>
>> What can be the reason and How can fix it?
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4260875.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
>



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

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


Re: hebrew text looks like ×׳—׳‘׳¨׳•

Posted by Sven Meier <sv...@meiers.net>.
You have to make sure Wicket loads your markup with the correct 
encoding, so add an xml prologue to all your markup files:

<?xml version="1.0" encoding="UTF-8"?>

Sven

Am 04.01.2012 12:07, schrieb naorye:
> am using intellij for writing java web application. I am also using apache
> wicket and apache Tomcat server.
> When running html pages (using wicket) all my hebrew texts are looking like
> ׳”׳×׳—׳‘׳¨׳•׳×.
>
> have<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>  in
> my header. I am hebrew speaker and my browser already set to hebrew (other
> hebrew sites works fine). I believe this is something with the wicket page
> generation. I builds the page from a template and several panels and I
> believe this what currupt the text.
>
> What can be the reason and How can fix it?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/hebrew-text-looks-like-tp4260875p4260875.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