RE: AW: AW: unicode in struts - thank you all of you for your help !

2002-11-12 Thread Huynh Ngoc Huy
  My problem is all right now. Thank you all of you
for your help!
  Huy

--- Michael Delamere <[EMAIL PROTECTED]> wrote:
> That is what we experienced, which is why I
> suggested that you should
> try setting filter="false" in your bean:wtite tag
> ;-) !
> 
> 
> 
> Regards,
> 
> Michael
> 
> 
> 
> -Original Message-
> From: Huynh Ngoc Huy [mailto:huyhngoc@;yahoo.com] 
> Sent: Dienstag, 12. November 2002 10:10
> To: Struts Users Mailing List
> Subject: Re: AW: AW: unicode in struts
> 
>   I've stored the unicode-string "?ay la một
> chuỗi unicode" into 'unicodeMessage' session
> variable. And the following is my code snippet to
> display it in browser:
> 
> <%@ taglib uri="/WEB-INF/struts-bean.tld"
> prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
> <%@ page contentType="text/html; charset=UTF-8" %>
> 
> 
> 
> But when I used jsp tag:
> <%=session.getAttribute("unicodeMessage")%>, it was
> displayed correctly.
> 
>   Best regard,
>   Huy
> 
> --- "Hirschmann, Bernhard"
> <[EMAIL PROTECTED]> wrote:
> > 
> > Huy, you may provide a code snippet for more
> details
> > about your problem. 
> > 
> > Bernhard
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@;jakarta.apache.org>
> > 
> 
> 
> __
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: AW: AW: unicode in struts

2002-11-12 Thread Michael Delamere
That is what we experienced, which is why I suggested that you should
try setting filter="false" in your bean:wtite tag ;-) !



Regards,

Michael



-Original Message-
From: Huynh Ngoc Huy [mailto:huyhngoc@;yahoo.com] 
Sent: Dienstag, 12. November 2002 10:10
To: Struts Users Mailing List
Subject: Re: AW: AW: unicode in struts

  I've stored the unicode-string "?ay la một
chuỗi unicode" into 'unicodeMessage' session
variable. And the following is my code snippet to
display it in browser:

<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%@ page contentType="text/html; charset=UTF-8" %>



But when I used jsp tag:
<%=session.getAttribute("unicodeMessage")%>, it was
displayed correctly.

  Best regard,
  Huy

--- "Hirschmann, Bernhard"
<[EMAIL PROTECTED]> wrote:
> 
> Huy, you may provide a code snippet for more details
> about your problem. 
> 
> Bernhard
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
> 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: AW: AW: unicode in struts

2002-11-12 Thread Huynh Ngoc Huy
  I've stored the unicode-string "ðây là một
chuỗi unicode" into 'unicodeMessage' session
variable. And the following is my code snippet to
display it in browser:

<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%@ page contentType="text/html; charset=UTF-8" %>



But when I used jsp tag:
<%=session.getAttribute("unicodeMessage")%>, it was
displayed correctly.

  Best regard,
  Huy

--- "Hirschmann, Bernhard"
<[EMAIL PROTECTED]> wrote:
> 
> Huy, you may provide a code snippet for more details
> about your problem. 
> 
> Bernhard
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: AW: unicode in struts

2002-11-12 Thread Alireza Fattahi
See http://www.anassina.com/struts/i18n/i18n.html


-Original Message-
From: Gemes Tibor [mailto:gemes@;regens.hu] 
Sent: Tuesday, November 12, 2002 12:27 PM
To: Struts Users Mailing List
Subject: Re: AW: unicode in struts

2002. november 12. 09:49 dátummal Hirschmann, Bernhard ezt írtad:
> HOW do you set the charset?
>
> You should do it this way:
>  <%@ page contentType="text/html; charset=utf-8" %>
>
> ...instead of this way:
>  
>
> At least, this is my experience. Websphere on Solaris only with the first
> variant.

Yes, it won't work unless your default locale has utf-8 as the charset, 
because the second one converts your page into the charset of the container 
locale, and sends it to the client, and the client tries to convert it into 
utf-8. However the first one converts on the container side ignoring the 
default locale so it should work in all circumstances.

Tib

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: AW: unicode in struts

2002-11-12 Thread Gemes Tibor
2002. november 12. 09:49 dátummal Hirschmann, Bernhard ezt írtad:
> HOW do you set the charset?
>
> You should do it this way:
>  <%@ page contentType="text/html; charset=utf-8" %>
>
> ...instead of this way:
>  
>
> At least, this is my experience. Websphere on Solaris only with the first
> variant.

Yes, it won't work unless your default locale has utf-8 as the charset, 
because the second one converts your page into the charset of the container 
locale, and sends it to the client, and the client tries to convert it into 
utf-8. However the first one converts on the container side ignoring the 
default locale so it should work in all circumstances.

Tib

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: AW: unicode in struts

2002-11-12 Thread Hirschmann, Bernhard

Huy, you may provide a code snippet for more details about your problem. 

Bernhard

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: unicode in struts

2002-11-12 Thread Huynh Ngoc Huy
  I've tried both of them.
  Thanks,

  Huy
--- "Hirschmann, Bernhard"
<[EMAIL PROTECTED]> wrote:
> 
> HOW do you set the charset?
> 
> You should do it this way:
>  <%@ page contentType="text/html; charset=utf-8" %>
> 
> ...instead of this way:
>  
> 
> At least, this is my experience. Websphere on
> Solaris only with the first
> variant.
> 
> Regards,
> Bernhard
> 
> 
> -Ursprüngliche Nachricht-
> Von: Huynh Ngoc Huy [mailto:huyhngoc@;yahoo.com]
> Gesendet: Dienstag, 12. November 2002 09:03
> An: Struts Users Mailing List
> Betreff: Re: unicode in struts
> 
> 
>   Yes, I do. I had set the charset before I did, but
> it was so. Is there anything else I must set?
>   Thanks
>   Huy
> --- Gemes Tibor <[EMAIL PROTECTED]> wrote:
> > 2002. november 12. 02:37 dátummal Huynh Ngoc Huy
> ezt
> > írtad:
> > >   Hi all,
> > >   Does struts tags support unicode? I had stored
> a
> > > unicode-string into a session, but 
> > tag
> > > didn't display it correctly.
> > >   Any help is appreciated!
> > 
> > Yes it does. However if you do not set the
> charset,
> > maybe the browser mess up 
> > the encoding. 
> > 
> > Did you set the content-type correctly in the
> > page-directive? 
> > 
> > Hth,
> > 
> > Tib
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: unicode in struts

2002-11-12 Thread Hirschmann, Bernhard

HOW do you set the charset?

You should do it this way:
 <%@ page contentType="text/html; charset=utf-8" %>

...instead of this way:
 

At least, this is my experience. Websphere on Solaris only with the first
variant.

Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Huynh Ngoc Huy [mailto:huyhngoc@;yahoo.com]
Gesendet: Dienstag, 12. November 2002 09:03
An: Struts Users Mailing List
Betreff: Re: unicode in struts


  Yes, I do. I had set the charset before I did, but
it was so. Is there anything else I must set?
  Thanks
  Huy
--- Gemes Tibor <[EMAIL PROTECTED]> wrote:
> 2002. november 12. 02:37 dátummal Huynh Ngoc Huy ezt
> írtad:
> >   Hi all,
> >   Does struts tags support unicode? I had stored a
> > unicode-string into a session, but 
> tag
> > didn't display it correctly.
> >   Any help is appreciated!
> 
> Yes it does. However if you do not set the charset,
> maybe the browser mess up 
> the encoding. 
> 
> Did you set the content-type correctly in the
> page-directive? 
> 
> Hth,
> 
> Tib
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: