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

Pound sign (�) in form submission

Kevin Stembridge

Joined: Feb 16, 2002
Posts: 9
Hi folks,
My apologies if I'm not in the right forum for this question.

I have a page with a form that accepts arbritrary user input in a textarea. If i enter a pound sign (�) and then submit the form, the server receives the characters A� (with a circumflex over the A). My pages are encoded in UTF-8 and have the appropriate meta tag for that charset. The UTF-8 hex code for the pound sign is C2A3, but this is obviously getting split into 2 separate characters C2 for the Acircumflex and A3 for the pound.

I don't know if this is a browser issue, a server issue or an application code issue. I've tested with the 4 combinations of JBoss vs Geronimo and Firefox vs Opera and the problem occurs in all those tests.

Thanks in advance for any help.

Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
This article may prove useful: Character Conversions from Browser to Database
[ February 10, 2006: Message edited by: Jeff Albertson ]

There is no emoticon for what I am feeling!
I agree. Here's the link:
subject: Pound sign (�) in form submission
It's not a secret anymore!