File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes transfering Euro (?) character Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "transfering Euro (?) character " Watch "transfering Euro (?) character " New topic

transfering Euro (?) character

indra sen

Joined: Jun 08, 2007
Posts: 27
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

Joined: Dec 18, 2006
Posts: 225

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

Joined: Dec 18, 2006
Posts: 20
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">

Poorna Prakash<br /> <br />SCJP 1.4 (90%), SCWCD (planning)
I agree. Here's the link:
subject: transfering Euro (?) character
It's not a secret anymore!