Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - URLEncode and the ’
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

URLEncode and the ’

 Post Reply Post Reply
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Topic: URLEncode and the ’
    Posted: 15 October 2004 at 11:16am

Need Help please

Does the Server.URLEncode can't deal with the apostrophe '

I have a catalogue with some items having in its name an '
It gives error when trying to read it from database

please try clicking on any item with an ' in its name here:
http://www.american-balloons.com/

The Item name is Yes! I'm a girl,
I use this code while reading its name from database
<%=server.URLEncode(RSpecial("ItemE"))%>

it is translated to:
Yes%21+I%27m+a+Girl

but when read i get this error

Syntax error (missing operator) in query expression 'Show = 'y' AND  CategoryE = 'Microfoil Balloons' AND ItemE = 'Yes! I'm a Girl' ORDER BY ID DESC;'.

so, it is again back to the ' while getting read from the database and not %27

any help

n.b. i'm using Access Database



Edited by zMaestro
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2004 at 2:06pm
Replace the apostrophe with two apostrophes in the SQL query
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.