• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

transfering Euro (?) character

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 225
Spring Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
***********************************
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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">
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic