do   request.setCharacterEncoding(response.getCharacterEncoding() );

in the controller servlet (ActionServlet) in the preprocessing method, this will
ensure that the request sent back by the user is decoded before anything is done
to the parameters

"Rustad, Aaron" wrote:

> Thanks for everyone's help. I have it working now to display the Russian
> Characters using UTF-8, but when I submit the form, the next page will not
> convert the parameters correctly. I have read the Anton Tagunov
> documentation on getting this to work, but it does not seem to work for me.
>
> This is what I have done so far:
>
> _ru.properties ....used native2ascii using UTF-8 encoding.
> *.jsp ....used native2ascii using UTF-8 encoding
> *.jsp ....added <% request.setCharacterEncoding(
> response.getCharacterEncoding() ); ...set it before any request calls
> *.jsp ....added all the page declarations that he uses
>
> BTW, I am using Tomcat 4.0.2.
>
> Am I missing anything?
>
> Thanks again!
> Aaron.
>
> -----Original Message-----
> From: Drew Sudell [mailto:[EMAIL PROTECTED]]
> Sent: February 25, 2002 9:22 AM
> To: Struts Users Mailing List
> Subject: RE: i18n - Escape Codes....
>
> > -----Original Message-----
> > From: Rustad, Aaron [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 25, 2002 11:16 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: i18n - Escape Codes....
> >
> >
> > I know of this site...unfortunatly, it seems to freeze half
> > was down, is
> > there any other mirrors of this information (the tripod link
> > doesn't work
> > either).
> >
>
> Actually, If you've installed the docs for your JDK, it's
> in there as well.  The link I sent was just to Sun's browsable
> copy of the docs.
>
> If not, the quick usage is
>
>  native2ascii [options] [inputfile [outputfile]]
>
> if input file is omitted, stdin is the default.  If output file is omitted
> stdout is the default.  The options are
>   -reverse - reverse the sense of the conversion (ie convert from Ascii and
>              escapes to the native encoding)
>   -encoding encoding_name - defaults to system property file.encoding
>
> Some encodings you might be interested in (the simple ones _ a few Russian)
> are:
>
> ASCII
> ISO8859_1
> ISO8859_5
> UFT8
> KOI8_R
>
> > -----Original Message-----
> > From: Drew Sudell [mailto:[EMAIL PROTECTED]]
> > Sent: February 25, 2002 8:54 AM
> > To: Struts Users Mailing List
> > Subject: RE: i18n - Escape Codes....
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Rustad, Aaron [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, February 24, 2002 4:01 AM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: i18n - Escape Codes....
> > >
> > >
> > > I am trying i18n my application by adding a
> > > Resources_ru.properties, and it
> > > seems to work. However, I can not get the Unicode characters to work
> > > correctly.
> > >
> > >
> > > I have looked at HP's example, and they use unicode escapes
> > for their
> > > messages....is there an easy way to convert Strings to
> > > Unicode strings?
> > >
> > http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/native2ascii.html
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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

Reply via email to