RE: Internationalization problem

2004-03-07 Thread Jonathan Abramsohn
Hi all
I finally got back to the problem and solved it the solution was as other described 
here:
At the start of the application (the first servlet in my case) before any
Use of the HttpServletRequest object I've added: 
"request.setCharacterEncoding("UTF-8");"
And that's it the application can receive and send any character in the Unicode set.

Thanks 
Jonathan




-Original Message-
From: Evgeny Gesin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 15:27
To: Tomcat Users List
Subject: RE: Internationalization problem

Some sources say to set in catalina.sh
 JAVA_OPTS=-Dfile.encoding="UTF8"

What is relation of that parameter and Web/JSP/i18n ?

Evgeny Gesin
Javadesk

--- "STOCKHOLM, Raymond" <[EMAIL PROTECTED]> wrote:
> é is "é" in UTF-8.
> It means that your browser is returning UTF-8, and
> your servlet/JSP
> is expecting ISO-8859-1.
> Check how your JSP is configured to handle the
> character set.
> To use UTF-8 in your JSP :
> <%@ page contentType="text/html;charset=UTF-8"
> pageEncoding="UTF-8"  %>
> and make sure that the charset in your JSP/HTML is
> defined as UTF-8 : 
> 
> 
> 
> -Message d'origine-
> De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 2 mars 2004 11:48
> À : Tomcat Users List
> Objet : Internationalization problem
> 
> 
> 
> I have problem with French special characters, like
> e with "accent" (é),
> When I get this character from user input, tomcat
> gets it as: é.
> Although I didn't check this in other languages I
> presume the same problems should also occur in
> German and Spanish and probably other languages.
> I'm working with tomcat 4.0.1 on Linux RH 9.0
> Anyone knows how to solve this?
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster
http://search.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




**
The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content. **
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-05 Thread Keith Hyland

Hi,

Thanks for that, got native2ascii converting my property files as an Ant 
task now and all seems to be working well.

Cheers,
Keith

Yansheng Lin wrote on 04/03/2004, 18:17:

 > native2ascii your properties file.  works for me:).
 >
 > -Original Message-
 > From: Keith Hyland [mailto:[EMAIL PROTECTED]
 > Sent: Thursday, March 04, 2004 10:03 AM
 > To: Tomcat Users List
 > Subject: RE: Internationalization problem
 >
 >
 > Hi,
 >
 > I'm testing some japanese characters in my app and I'm getting some
 > strange behaviour.
 >
 > japanese characters that are in the jsp page get displayed correctly.
 >
 > However characters that get displayed through the  tag get
 > corrupted.
 >
 > I have set the -Dfileencoding="UTF-8" in my catalina.bat
 > (CATALINA_OPTS), and set the
 >
 > 
 > 
 > 
 >
 > at the op of my jsp page.
 >
 > Is there something I have to do to my resource properties file?
 >
 > Any help appreciated.
 >
 > Cheers,
 > Keith
 >
 > Is there something el
 >
 > Ralph Einfeldt wrote on 02/03/2004, 14:06:
 >
 > > <%@ page contentType="text/html;charset=UTF-8"
 > > > > pageEncoding="UTF-8"  %>
 >
 >
 > -
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, e-mail: [EMAIL PROTECTED]
 >
 >
 > -
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, e-mail: [EMAIL PROTECTED]
 >



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-04 Thread Yansheng Lin
native2ascii your properties file.  works for me:).

-Original Message-
From: Keith Hyland [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 10:03 AM
To: Tomcat Users List
Subject: RE: Internationalization problem


Hi,

I'm testing some japanese characters in my app and I'm getting some 
strange behaviour.

japanese characters that are in the jsp page get displayed correctly.

However characters that get displayed through the  tag get 
corrupted.

I have set the -Dfileencoding="UTF-8" in my catalina.bat 
(CATALINA_OPTS), and set the





at the op of my jsp page.

Is there something I have to do to my resource properties file?

Any help appreciated.

Cheers,
Keith

Is there something el

Ralph Einfeldt wrote on 02/03/2004, 14:06:

 > <%@ page contentType="text/html;charset=UTF-8"
 > > > pageEncoding="UTF-8"  %>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-04 Thread John Sidney-Woollett
Keith Hyland said:
> I'm testing some japanese characters in my app and I'm getting some
> strange behaviour.
>
> japanese characters that are in the jsp page get displayed correctly.
>
> However characters that get displayed through the  tag get
> corrupted.
>
> I have set the -Dfileencoding="UTF-8" in my catalina.bat
> (CATALINA_OPTS), and set the
>
> 
> 
> 
>
> at the op of my jsp page.
>
> Is there something I have to do to my resource properties file?

I think that resource properties ONLY support ISO-8859-1. They do allow
UTF characters to be defined provided the high order byte is zero. It is a
weakness in property files (which is yet to be addressed).

Consider populating the properties file without using the default load
mechanism to allow/preserve the UTF-8 encoding.

John Sidney-Woollett
> Any help appreciated.
>
> Cheers,
> Keith
>
> Is there something el
>
> Ralph Einfeldt wrote on 02/03/2004, 14:06:
>
>  > <%@ page contentType="text/html;charset=UTF-8"
>  > > > pageEncoding="UTF-8"  %>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-04 Thread Kumar Abhay-CAK203C
Hi,

What is there in   tag ?


Best Regards
Abhay Kumar


-Original Message-
From: Keith Hyland [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 04, 2004 11:03 AM
To: Tomcat Users List
Subject: RE: Internationalization problem


Hi,

I'm testing some japanese characters in my app and I'm getting some 
strange behaviour.

japanese characters that are in the jsp page get displayed correctly.

However characters that get displayed through the  tag get 
corrupted.

I have set the -Dfileencoding="UTF-8" in my catalina.bat 
(CATALINA_OPTS), and set the


 

at the op of my jsp page.

Is there something I have to do to my resource properties file?

Any help appreciated.

Cheers,
Keith

Is there something el

Ralph Einfeldt wrote on 02/03/2004, 14:06:

 > <%@ page contentType="text/html;charset=UTF-8"
 > > > pageEncoding="UTF-8"  %>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-04 Thread Keith Hyland
Hi,

I'm testing some japanese characters in my app and I'm getting some 
strange behaviour.

japanese characters that are in the jsp page get displayed correctly.

However characters that get displayed through the  tag get 
corrupted.

I have set the -Dfileencoding="UTF-8" in my catalina.bat 
(CATALINA_OPTS), and set the





at the op of my jsp page.

Is there something I have to do to my resource properties file?

Any help appreciated.

Cheers,
Keith

Is there something el

Ralph Einfeldt wrote on 02/03/2004, 14:06:

 > <%@ page contentType="text/html;charset=UTF-8"
 > > > pageEncoding="UTF-8"  %>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-02 Thread Yansheng Lin
Hi, take a look at this thread.  
http://www.mail-archive.com/[EMAIL PROTECTED]/msg91815.html
Like Ralph Einfeldt said, you need to encode the JSP files, the request and the
response.  You've done the JSP part, now you want to define a filter for the
other two.  Btw, ISO-8859-1(Latin 1) covers most Western European Languages, it
should be able to handle the French characters.  

-Yan

-Original Message-
From: Evgeny Gesin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 7:33 AM
To: Tomcat Users List
Subject: RE: Internationalization problem


I see, so this
 JAVA_OPTS=-Dfile.encoding="UTF8"
is important to generate correct chars from hardcoded
strings if written directly in java files.
Thanks

Evgeny Gesin
Javadesk


--- Ralph Einfeldt <[EMAIL PROTECTED]>
wrote:
> 
> You have to consider 3 different topics:
> - encoding of generated java files
>   This is defined by the file.encoding option of the
> jvm.
> 
> - encoding of the response
>   This is defined by the encoding tag of the jsp or
> by 
>   explicitly setting the encoding in the response
> 
> - encoding of the request
>   This is defined by explicitly setting the encoding
> 
>   for the request.
> 
> > -Original Message-
> > From: Evgeny Gesin [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 02, 2004 2:27 PM
> > To: Tomcat Users List
> > Subject: RE: Internationalization problem
> > 
> > 
> > Some sources say to set in catalina.sh
> >  JAVA_OPTS=-Dfile.encoding="UTF8"
> > 
> > What is relation of that parameter and
> Web/JSP/i18n ?
> > 
> > Evgeny Gesin
> > Javadesk
> > 
> > --- "STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
> wrote:
> > > é is "é" in UTF-8.
> > > It means that your browser is returning UTF-8,
> and
> > > your servlet/JSP
> > > is expecting ISO-8859-1.
> > > Check how your JSP is configured to handle the
> > > character set.
> > > To use UTF-8 in your JSP :
> > > <%@ page contentType="text/html;charset=UTF-8"
> > > pageEncoding="UTF-8"  %>
> > > and make sure that the charset in your JSP/HTML
> is
> > > defined as UTF-8 : 
> > >  content="text/html;
> > > charset=UTF-8">
> > > 
> > > 
> > > -Message d'origine-
> > > De : Jonathan Abramsohn
> [mailto:[EMAIL PROTECTED]
> > > Envoyé : mardi 2 mars 2004 11:48
> > > À : Tomcat Users List
> > > Objet : Internationalization problem
> > > 
> > > 
> > > 
> > > I have problem with French special characters,
> like
> > > e with "accent" (é),
> > > When I get this character from user input,
> tomcat
> > > gets it as: é.
> > > Although I didn't check this in other languages
> I
> > > presume the same problems should also occur in
> > > German and Spanish and probably other languages.
> > > I'm working with tomcat 4.0.1 on Linux RH 9.0
> > > Anyone knows how to solve this?
> > > 
> > > 
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Search - Find what you're looking for
> faster
> > http://search.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-02 Thread Evgeny Gesin
I see, so this
 JAVA_OPTS=-Dfile.encoding="UTF8"
is important to generate correct chars from hardcoded
strings if written directly in java files.
Thanks

Evgeny Gesin
Javadesk


--- Ralph Einfeldt <[EMAIL PROTECTED]>
wrote:
> 
> You have to consider 3 different topics:
> - encoding of generated java files
>   This is defined by the file.encoding option of the
> jvm.
> 
> - encoding of the response
>   This is defined by the encoding tag of the jsp or
> by 
>   explicitly setting the encoding in the response
> 
> - encoding of the request
>   This is defined by explicitly setting the encoding
> 
>   for the request.
> 
> > -Original Message-
> > From: Evgeny Gesin [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 02, 2004 2:27 PM
> > To: Tomcat Users List
> > Subject: RE: Internationalization problem
> > 
> > 
> > Some sources say to set in catalina.sh
> >  JAVA_OPTS=-Dfile.encoding="UTF8"
> > 
> > What is relation of that parameter and
> Web/JSP/i18n ?
> > 
> > Evgeny Gesin
> > Javadesk
> > 
> > --- "STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
> wrote:
> > > é is "é" in UTF-8.
> > > It means that your browser is returning UTF-8,
> and
> > > your servlet/JSP
> > > is expecting ISO-8859-1.
> > > Check how your JSP is configured to handle the
> > > character set.
> > > To use UTF-8 in your JSP :
> > > <%@ page contentType="text/html;charset=UTF-8"
> > > pageEncoding="UTF-8"  %>
> > > and make sure that the charset in your JSP/HTML
> is
> > > defined as UTF-8 : 
> > >  content="text/html;
> > > charset=UTF-8">
> > > 
> > > 
> > > -Message d'origine-
> > > De : Jonathan Abramsohn
> [mailto:[EMAIL PROTECTED]
> > > Envoyé : mardi 2 mars 2004 11:48
> > > À : Tomcat Users List
> > > Objet : Internationalization problem
> > > 
> > > 
> > > 
> > > I have problem with French special characters,
> like
> > > e with "accent" (é),
> > > When I get this character from user input,
> tomcat
> > > gets it as: é.
> > > Although I didn't check this in other languages
> I
> > > presume the same problems should also occur in
> > > German and Spanish and probably other languages.
> > > I'm working with tomcat 4.0.1 on Linux RH 9.0
> > > Anyone knows how to solve this?
> > > 
> > > 
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Search - Find what you're looking for
> faster
> > http://search.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-02 Thread Ralph Einfeldt

You have to consider 3 different topics:
- encoding of generated java files
  This is defined by the file.encoding option of the jvm.

- encoding of the response
  This is defined by the encoding tag of the jsp or by 
  explicitly setting the encoding in the response

- encoding of the request
  This is defined by explicitly setting the encoding 
  for the request.

> -Original Message-
> From: Evgeny Gesin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 02, 2004 2:27 PM
> To: Tomcat Users List
> Subject: RE: Internationalization problem
> 
> 
> Some sources say to set in catalina.sh
>  JAVA_OPTS=-Dfile.encoding="UTF8"
> 
> What is relation of that parameter and Web/JSP/i18n ?
> 
> Evgeny Gesin
> Javadesk
> 
> --- "STOCKHOLM, Raymond" <[EMAIL PROTECTED]> wrote:
> > é is "é" in UTF-8.
> > It means that your browser is returning UTF-8, and
> > your servlet/JSP
> > is expecting ISO-8859-1.
> > Check how your JSP is configured to handle the
> > character set.
> > To use UTF-8 in your JSP :
> > <%@ page contentType="text/html;charset=UTF-8"
> > pageEncoding="UTF-8"  %>
> > and make sure that the charset in your JSP/HTML is
> > defined as UTF-8 : 
> > 
> > 
> > 
> > -Message d'origine-
> > De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
> > Envoyé : mardi 2 mars 2004 11:48
> > À : Tomcat Users List
> > Objet : Internationalization problem
> > 
> > 
> > 
> > I have problem with French special characters, like
> > e with "accent" (é),
> > When I get this character from user input, tomcat
> > gets it as: é.
> > Although I didn't check this in other languages I
> > presume the same problems should also occur in
> > German and Spanish and probably other languages.
> > I'm working with tomcat 4.0.1 on Linux RH 9.0
> > Anyone knows how to solve this?
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Search - Find what you're looking for faster
> http://search.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem [2]

2004-03-02 Thread Evgeny Gesin
Some sources say to set in catalina.sh
 JAVA_OPTS=-Dfile.encoding="UTF8"

What is relation of that parameter and Web/JSP/i18n ?

Evgeny Gesin
Javadesk

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-02 Thread Evgeny Gesin
Some sources say to set in catalina.sh
 JAVA_OPTS=-Dfile.encoding="UTF8"

What is relation of that parameter and Web/JSP/i18n ?

Evgeny Gesin
Javadesk

--- "STOCKHOLM, Raymond" <[EMAIL PROTECTED]> wrote:
> é is "é" in UTF-8.
> It means that your browser is returning UTF-8, and
> your servlet/JSP
> is expecting ISO-8859-1.
> Check how your JSP is configured to handle the
> character set.
> To use UTF-8 in your JSP :
> <%@ page contentType="text/html;charset=UTF-8"
> pageEncoding="UTF-8"  %>
> and make sure that the charset in your JSP/HTML is
> defined as UTF-8 : 
> 
> 
> 
> -Message d'origine-
> De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 2 mars 2004 11:48
> À : Tomcat Users List
> Objet : Internationalization problem
> 
> 
> 
> I have problem with French special characters, like
> e with "accent" (é),
> When I get this character from user input, tomcat
> gets it as: é.
> Although I didn't check this in other languages I
> presume the same problems should also occur in
> German and Spanish and probably other languages.
> I'm working with tomcat 4.0.1 on Linux RH 9.0
> Anyone knows how to solve this?
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-02 Thread Jonathan Abramsohn
Hi 
Thanks for your answers but It did not solve the problem.
Any other ideas?

-Original Message-
From: Mariano [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 14:35
To: 'Tomcat Users List'
Subject: RE: Internationalization problem

Yes, in the conf/server.xml file, connector port:_



Mariano

-Mensaje original-
De: Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Enviado el: martes, 02 de marzo de 2004 13:30
Para: Tomcat Users List
Asunto: RE: Internationalization problem


I've added the two lines you mentioned but it still doesn't help.
Is there a way to tell the servlet that receives the parameters from the
request.getParameter(paramName) to read it as utf-8 or any other encoding?

Thanks
Jonathan

-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 12:58
To: Tomcat Users List
Subject: RE: Internationalization problem

é is "é" in UTF-8.
It means that your browser is returning UTF-8, and your servlet/JSP
is expecting ISO-8859-1.
Check how your JSP is configured to handle the character set.
To use UTF-8 in your JSP :
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
and make sure that the charset in your JSP/HTML is defined as UTF-8 :



-Message d'origine-
De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Envoyé : mardi 2 mars 2004 11:48
À : Tomcat Users List
Objet : Internationalization problem



I have problem with French special characters, like e with "accent" (é),
When I get this character from user input, tomcat gets it as: é.
Although I didn't check this in other languages I presume the same problems
should also occur in German and Spanish and probably other languages.
I'm working with tomcat 4.0.1 on Linux RH 9.0
Anyone knows how to solve this?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-02 Thread Mariano
Yes, in the conf/server.xml file, connector port:_



Mariano

-Mensaje original-
De: Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Enviado el: martes, 02 de marzo de 2004 13:30
Para: Tomcat Users List
Asunto: RE: Internationalization problem


I've added the two lines you mentioned but it still doesn't help.
Is there a way to tell the servlet that receives the parameters from the
request.getParameter(paramName) to read it as utf-8 or any other encoding?

Thanks
Jonathan

-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 12:58
To: Tomcat Users List
Subject: RE: Internationalization problem

é is "é" in UTF-8.
It means that your browser is returning UTF-8, and your servlet/JSP
is expecting ISO-8859-1.
Check how your JSP is configured to handle the character set.
To use UTF-8 in your JSP :
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
and make sure that the charset in your JSP/HTML is defined as UTF-8 :



-Message d'origine-
De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Envoyé : mardi 2 mars 2004 11:48
À : Tomcat Users List
Objet : Internationalization problem



I have problem with French special characters, like e with "accent" (é),
When I get this character from user input, tomcat gets it as: é.
Although I didn't check this in other languages I presume the same problems
should also occur in German and Spanish and probably other languages.
I'm working with tomcat 4.0.1 on Linux RH 9.0
Anyone knows how to solve this?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Internationalization problem

2004-03-02 Thread Jonathan Abramsohn
I've added the two lines you mentioned but it still doesn't help.
Is there a way to tell the servlet that receives the parameters from the 
request.getParameter(paramName) to read it as utf-8 or any other encoding?

Thanks 
Jonathan

-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 12:58
To: Tomcat Users List
Subject: RE: Internationalization problem

é is "é" in UTF-8.
It means that your browser is returning UTF-8, and your servlet/JSP
is expecting ISO-8859-1.
Check how your JSP is configured to handle the character set.
To use UTF-8 in your JSP :
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
and make sure that the charset in your JSP/HTML is defined as UTF-8 : 



-Message d'origine-
De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Envoyé : mardi 2 mars 2004 11:48
À : Tomcat Users List
Objet : Internationalization problem



I have problem with French special characters, like e with "accent" (é),
When I get this character from user input, tomcat gets it as: é.
Although I didn't check this in other languages I presume the same problems should 
also occur in German and Spanish and probably other languages.
I'm working with tomcat 4.0.1 on Linux RH 9.0
Anyone knows how to solve this?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization problem

2004-03-02 Thread STOCKHOLM, Raymond
é is "é" in UTF-8.
It means that your browser is returning UTF-8, and your servlet/JSP
is expecting ISO-8859-1.
Check how your JSP is configured to handle the character set.
To use UTF-8 in your JSP :
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
and make sure that the charset in your JSP/HTML is defined as UTF-8 : 



-Message d'origine-
De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Envoyé : mardi 2 mars 2004 11:48
À : Tomcat Users List
Objet : Internationalization problem



I have problem with French special characters, like e with "accent" (é),
When I get this character from user input, tomcat gets it as: é.
Although I didn't check this in other languages I presume the same problems should 
also occur in German and Spanish and probably other languages.
I'm working with tomcat 4.0.1 on Linux RH 9.0
Anyone knows how to solve this?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internationalization Problem

2003-09-04 Thread Allen Hadden

Assuming you're talking about a JSP (and not a static HTML page), try doing this at 
the top of your JSP file:

<[EMAIL PROTECTED] contentType="text/html; charset=UTF-8"%>

Or

response.setContentType("text/html; charset=UTF-8");

(these are equivalent, if memory serves me correctly).

I've always been a little unsure as to how the browsers handle differences in the HTTP 
header and HTTP-EQUIV, but I guess your example shows that it's using the HTTP header 
(the default is ISO-8859-1).  Althought, it might be browser-dependent.  I always just 
make sure they match.

Another thing to look out for...if you're handling posted form data, make sure you 
call request.setCharacterEncoding("UTF-8") before doing the request.getParameter 
calls.  There might be other ways to handle this, depending on your servlet container. 
 I think Tomcat requires the call to request.setCharacterEncoding, but I know that 
iPlanet 6 doesn't support that call.  For iPlanet 6, you have change a configuration 
file to tell it you want posted data to be interpreted as UTF-8.  This is legacy HTTP 
stuff...there's no standard way for a POST to contain the character set of the data 
(the web application just has to know).

Allen

> -Original Message-
> From: Chaitanya Pallapothula [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 03, 2003 8:56 PM
> To: [EMAIL PROTECTED]
> Subject: Internationalization Problem
> 
> 
> Hi 
> I have been working on Internationalization and during
> that process I encountere this strange problem. 
> My server is sending the right characters(Russian) to
> the browser. And also I have put this tag " HTTP-EQUIV="Content-Type"
> CONTENT="text/html;charset=utf-8">" in the head pasrt
> of my out put. 
> 
> The problem is browser cannot render the characters
> correctly. And when I see the view -> Encoding menu of
> the browser "Western Europian(Windows)" was selected.
> If I manually change that to UTF-8 it paints the
> correct characters. 
> 
> So I added the code(socument.chatset="utf-8") to force
> the browser to select UTF-8 as encoding. This time the
> encoidng was selected as UTF-8 and still the browser
> doesnt paint the characters correctly. If I click on
> view->Encoding->UTF-8 manually(Though utf-8 is
> selected by default). It paints the characters
> correctly. 
> 
> I am confused with this kind of behaviour. I am using
> tomcat4.1.12 as my servlet engine and web server. And
> also I am using struts framework(tag lib also). 
> 
> Note:  When I set the charset in the response. The
> server doesnt send the right characters to the
> browser. If I dont set any charset in the response
> header, server sends the right charset to the browser.
> 
> 
>  I am also confused whether the problem is browser or
> the server.
> 
> Any help would be greatly apreciated. 
> Thanks
> Chaitanya
> 
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Internationalization Problem

2003-09-04 Thread Janis_Olekss
1) 4.1.12 is full of bugs
2) HTML header is prior to  tag, so if you don't specify encoding in 
the response the default one is
enforced "ISO-8859-1" (you can see it in generated code for JSP servlet)
3) Setting it directly to response.setContentType() wont work, don't know 
why, it's a bug in Tomcat as far
as I investigated
4) Only solution is to use <[EMAIL PROTECTED] pageEncoding=... %> in the begining of 
your JSPs and that does not work
for me for all the tomcats 4.1.X but works for 4.0.6

I can't say WHY it is happening!
I guess coz it is open source code and nobody is responsible for anything!
___
Living things are systems that tend to respond to changes in their 
environment, 
and inside themselves, in such a way as to promote their own continuation.

Janis Olekss
Exigen Latvia System Analyst
(Office) +371 7072900
(Cell) +371 9136267




Chaitanya Pallapothula <[EMAIL PROTECTED]>
09/04/2003 03:55
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:Internationalization Problem


Hi 
I have been working on Internationalization and during
that process I encountere this strange problem. 
My server is sending the right characters(Russian) to
the browser. And also I have put this tag "" in the head pasrt
of my out put. 

The problem is browser cannot render the characters
correctly. And when I see the view -> Encoding menu of
the browser "Western Europian(Windows)" was selected.
If I manually change that to UTF-8 it paints the
correct characters. 

So I added the code(socument.chatset="utf-8") to force
the browser to select UTF-8 as encoding. This time the
encoidng was selected as UTF-8 and still the browser
doesnt paint the characters correctly. If I click on
view->Encoding->UTF-8 manually(Though utf-8 is
selected by default). It paints the characters
correctly. 

I am confused with this kind of behaviour. I am using
tomcat4.1.12 as my servlet engine and web server. And
also I am using struts framework(tag lib also). 

Note:  When I set the charset in the response. The
server doesnt send the right characters to the
browser. If I dont set any charset in the response
header, server sends the right charset to the browser.


 I am also confused whether the problem is browser or
the server.

Any help would be greatly apreciated. 
Thanks
Chaitanya




__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Internationalization Problem

2001-01-08 Thread RAMAKRISHNA SANKA

Raphael,
I tried your jsp with my Tomcat 3.1 running with JDK1.2.2 on NT
and I got the correct results - in french. My default locale is en_US.

Ramakrishna




Get free email and a permanent address at http://www.netaddress.com/?N=1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]