This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

process special Word quote chartacters in jsp

 
Joshua Cloch
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joshua Cloch
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Microsoft calls those little troublemakers "smart" quotes and other punctuation. Here a routine I use:



Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. I have tested it and it works pretty well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic