| 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: 56174
|
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56174
|
|
|
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: 12267
|
|
Microsoft calls those little troublemakers "smart" quotes and other punctuation. Here a routine I use: Bill
|
Java Resources at www.wbrogden.com
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56174
|
|
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: 56174
|
|
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.
|
 |
 |
|
|
subject: process special Word quote chartacters in jsp
|
|
|