Apostrophe...

This is a discussion on "Apostrophe..." within the Classic ASP section. This forum, and the thread "Apostrophe... are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Aug 13th, 2004, 10:11
Junior Member
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Apostrophe...

I've set up a bulletin thing for the website yet when anyone uses the ' apostrophe it is not accepted. Any function I can use to get around this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Aug 13th, 2004, 10:50
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
apostrophies need to be escaped, usually by doubling them up like:

Code: Select all
replace(strTextWithApostropheIn,"'","''")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Aug 13th, 2004, 13:11
Junior Member
Join Date: Jun 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />Originally posted by D3mon
apostrophies need to be escaped, usually by doubling them up like:

Code: Select all
replace(strTextWithApostropheIn,"'","''")
<hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">

Thnaks but this what worked:

Code: Select all
strNews = Replace (strNews,"'","&apos;")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
apostrophe

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to include font name that has apostrophe Lchad PHP Forum 3 Sep 17th, 2007 16:30
apostrophe becomes ’ aaronh Web Page Design 12 Jul 30th, 2007 13:38
using apostrophe in sql statement djanim8 Classic ASP 1 Oct 10th, 2006 13:09
Apostrophe in Text Output RobinDeanDotCom PHP Forum 2 Oct 4th, 2006 12:48


All times are GMT. The time now is 15:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42