File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transfering Euro (?) character

 
indra sen
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am submitting a request in a form,which has comments input box.
When i write Euro character ,it is converting to ? ,when i am doing request.getParameter in servlet.
any help,
thanks in advance...
 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am also facing similar problem.
When I am converiting the input from int to char for the range
0-255. It is giving the result for 0-127.And for the range 128-159 it is showing ? character.
Then for the range 160-255 giving the result.
I think this might be due to jvm version problem on particular platform.(not 100% sure)

Please suggest...

Thank you.


***********************************
Tip: Sincerity is mother of all acheivements.
***********************************
 
poorna prakash parvathala
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi your problem is because of the character encoding of the Request

to ensure the character encoding is 'UTF-8', you can place this in you JSP

<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>

or if your page is simple HTML then

you can include the same inforamation in meta tag

<meta http-equiv = "Content-Type"; content="text/html";charset="UTF-8">
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic