Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Posting unicode characters from a form

Reply
Thread Tools

Posting unicode characters from a form

 
 
dschectman@yahoo.com
Guest
Posts: n/a
 
      03-26-2007
I have an application running on iplanet app server 6.5/web server
6.0. The application server exclusively handles servlets and JSPS.

I created a test form that posts one field to the server. I then
created a JSP that gets the value of the field posted to display on
the screen. Both files set the encoding to UTF-8.

reuqest.getParameter returns a string that appears to be partially
utf-8 encoded and partially ISO-8895-1 encoded. I have to transoform
the string with String correctValue= new
String(name.getBytes("ISO-8859-1"), "utf-8"); in order to display the
Japanese characters

I set the UTF-8 enconding the web server web-apps.xml. This has no
impact on the application server. Is there a similar confiuration for
the app server or is ISO encoding built in to the web connector? If
possible I would like ot avoid adding the above transformation to all
servlets and JSPS that call request.getParameter

Thanks,

David

 
Reply With Quote
 
 
 
 
Andreas Leitgeb
Guest
Posts: n/a
 
      03-27-2007
<> wrote:
> reuqest.getParameter returns a string that appears to be partially
> utf-8 encoded and partially ISO-8895-1 encoded.


One string with mixed encoding?

One usualy suspect might be the browser: Which one do you
use, and is there a way to intercept the communication
between browser and server? Perhaps the browser sends
utf-8 data but declares it as being iso-8859-1.

Just speculation.

 
Reply With Quote
 
 
 
 
dschectman@yahoo.com
Guest
Posts: n/a
 
      04-11-2007
On Mar 27, 3:55 am, Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at>
wrote:
> dschect...@yahoo.com <dschect...@yahoo.com> wrote:
> > reuqest.getParameter returns a string that appears to be partially
> > utf-8 encoded and partially ISO-8895-1 encoded.

>
> One string with mixed encoding?
>
> One usualy suspect might be the browser: Which one do you
> use, and is there a way to intercept the communication
> between browser and server? Perhaps the browser sends
> utf-8 data but declares it as being iso-8859-1.
>
> Just speculation.


When I run the same JSP off the web server. The encoding is purely
utf-8. It is only when I run the JSP off the application server that
I see mixed encoding. The documentation for versions 7.X of the
application server refers to a hidden form variable that identifies
the encoding of form data. This leads me to believe that the mixed
encoding may be built in to the GX plug-in, which transfers
information between the web server and the application server.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python unicode utf-8 characters and MySQL unicode utf-8 characters Grzegorz Śliwiński Python 2 01-19-2011 07:31 AM
Re: convert unicode characters to visibly similar ascii characters Laszlo Nagy Python 6 07-02-2008 04:42 PM
Re: convert unicode characters to visibly similar ascii characters M.-A. Lemburg Python 0 07-02-2008 08:39 AM
Re: convert unicode characters to visibly similar ascii characters Terry Reedy Python 0 07-01-2008 07:46 PM
Posting Unicode Form Values Arnold Shore ASP General 4 10-16-2003 04:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57