Hi All,
I am working with a Web Application, where in there is a text area, where the user can enter free text. Now, this page submits to a
servlet, which in turns store the data from the webpage into an Oracle Database.
While sending the data from the textarea to the servlet, i am using the javascript's
method. Now, the problem is, when i get the data from the browser to the servlet, the text of the textarea, comes in an encoded format. Now, before putting the data in the database, i would like to decode the content.
Now, i am unable to use the
, since i cannot use javascript inside the servlet. I am planning to use
function of
Java, but to use that function, i need to get the encoding in which the browser's content is being encoded. Now my question, is how can we determine the encoding of a Browser in the servlet. I have tried the http headers, but of no use.
Just for your information, i am not using the
attribute of html tag. This may seem a small problem to you all, but it wasn't for me.
Request you all to help me in this regard.
Thanks
Chaitanya V