This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes Storing and retrieving Textarea content    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Storing and retrieving Textarea content    " Watch "Storing and retrieving Textarea content    " New topic
Author

Storing and retrieving Textarea content

Pradeep Kumar T
Greenhorn

Joined: Apr 14, 2007
Posts: 12
I have a web application, in which the content of a textarea is stored in a file on the server, and retrived
later(to display on the web page). The issue here is, when some text from a MS Word doc is copied and pasted on the textarea and if it is stored on file, it gets stored with some special html tags like "<TABLE class=MsoNormalTable "> . So later if i retrieve the content of the file and display it in any <p> tag, the special characters like "(double quotes),-(hyphen).',^,....are not recognized by the browser and gets displayed as "??"...Is there any way to avoid this or any workarounds?

Thanks in advance
Pradeep
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See:
http://faq.javaranch.com/java/WierdWordCharacters


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Pradeep Kumar T
Greenhorn

Joined: Apr 14, 2007
Posts: 12
Thank you so much for the helpful link!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Storing and retrieving Textarea content