aspose file tools*
The moose likes JSP and the fly likes Character set encoding issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Character set encoding issue" Watch "Character set encoding issue" New topic
Author

Character set encoding issue

Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi All ,

I am trying to make a very very simple form text box with submit button i have filled the input text with non-English language like french word but when i submited to next page (process.jsp) i have found it different


by the way I am using eclipse + tomcat + ubuntu and i have set the encoding in eclipse to utf-8 and it worked fine when a test with small .java program.

one more thing i have tested the same application using eclipse + jboss + windows and facing the same issue.

works perfectly with english works fine but does not work with other languages like French , Hindi , Arabic , ..



index.jsp



process.jsp

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Is the encoding lost on the way to the server or from the server to the client ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Thanks Deepak for your reply,

Is the encoding lost on the way to the server or from the server to the client ?

how it get lost ? Is that possible ? how to check that it has lost ? (i did not get your question).

by the way I am working locally ( in the same machine).
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Suresh Khant wrote:Thanks Deepak for your reply,

Is the encoding lost on the way to the server or from the server to the client ?

how it get lost ? Is that possible ? how to check that it has lost ? (i did not get your question).

by the way I am working locally ( in the same machine).


Let me clarify. I meant to ask 'Is the encoded information lost on the way to your server or on the way to the client ?'. Strictly speaking, information is not really lost. It cannot be interpreted if the right encoding is not present. The word is used loosely in this context
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
information lost on the way to server.
Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
Hi All ,

I am really shy from myself , because the cause for this problem was very small and silly thing ............

I am posting the solution for the problem not to show that I am a champ nor am the one who solved the problem but showing the solution only for information.

the missing part is the method of the form



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Character set encoding issue