aspose file tools*
The moose likes JSP and the fly likes process special Word quote chartacters in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "process special Word quote chartacters in jsp" Watch "process special Word quote chartacters in jsp" New topic
Author

process special Word quote chartacters in jsp

Joshua Cloch
Ranch Hand

Joined: Apr 27, 2006
Posts: 95
Hello guys,

My problem is : when I send an email using my website application, the website automatically changes some special marks like ' to ? .

Any ideas?

Thanks a lot.

[Bear edit: changed topic title to make this easier to search for in the future]
[ February 16, 2007: Message edited by: Bear Bibeault ]

truehh@hotmail.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

You'll need to give us a lot more detail than that. How are you generating these quotes? With Word or other document processing software? If so, those programs use special characters for opening and closing quotes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joshua Cloch
Ranch Hand

Joined: Apr 27, 2006
Posts: 95
Yes, Microsoft Word is used to generate the document first, which is then copied and moved to the website.

I have also copied the same content and tested it using yahoomail or googlemail, it works well. So, I guess there must be some solutions.

Any ideas?
[ February 16, 2007: Message edited by: Joshua Cloch ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

Either replace the special chaeracters that Word uses for quotes, or set Word up to not use them in the first place.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Microsoft calls those little troublemakers "smart" quotes and other punctuation. Here a routine I use:



Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

Brilliant, William! Providing the character codes will certainly be helpful to many who also experience this problem.

I've changed the topic title to better reflect the issue so that this solution will be easier to find in future searches.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

With William's permission, I have added a new JSP FAQ entry containing his code fragment. Thanks William!
[ February 16, 2007: Message edited by: Bear Bibeault ]
Joshua Cloch
Ranch Hand

Joined: Apr 27, 2006
Posts: 95
Thanks guys. I have tested it and it works pretty well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: process special Word quote chartacters in jsp