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

Adding Special Characters To MySQL DB Using Java

 
Mark Gowdy
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to add occasional special characters (eg, accents, umlauts) to the mysql db and return them successfully. When I try to display the results I get a totally different character.
The weird thing is that when I add it from a textarea and display it, everything is fine. When I add it in a textbox it does not work fine.
Any ideas would be most gratefully appreciated.
Thanks
Mark
 
Cory Wilkerson
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What sort of textbox are you talking about? HTML's standard text input or rather an awt component, a swing componenet, etc?
 
Mark Gowdy
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for responding....I am using the standard HTML textbox and textarea in my JSP.
Cheers
Mark
 
Cory Wilkerson
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, to clarify...
You're attempting to dump these special characters into a MySQL database via standard HTML controls, ie, text inputs and text areas. When you do so via a text area and then display your text all is well, however, when you do so via a text input...it doesn't work out.
Do I understand your issue before I attempt to duplicate this?
Cory
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic