Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Strange bug in simple ASP code...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Strange bug in simple ASP code...

 Post Reply Post Reply
Author
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Topic: Strange bug in simple ASP code...
    Posted: 25 April 2003 at 6:45pm

Hi guys, heres a simple slice of code:

If len(rsCommon("Subject")) > 18 then
  str_topic_subject = left(rsCommon("Subject"),18) & "..."
else
  str_topic_subject = rsCommon("Subject")
end if

The code simply cuts down the length of a topic and adds ... to the end of it if its too long to display.

My question is that sometimes for no apparent reason it adds &# to the end of the string!

Some examples:

Wheres the pics on this site?

Turns into:

Wheres the pics &#...

 

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2003 at 6:53pm

How utterly strange, I have found the problem, I think its to do with the forum?

For some reason sometimes the "o" is replaced with "o"

Why does it do this?

So

Wheres the pics on this site?

Is written as

Wheres the pics on this site?

In the database

Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2003 at 7:03pm

The forum does this. Its because of the code filter in the forum.

Edit:

p.s. I want my $100 back that you took



Edited by MadDog
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.