Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Weird character addition
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Weird character addition

 Post Reply Post Reply Page  12>
Author
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Topic: Weird character addition
    Posted: 24 August 2003 at 4:34pm

look at the following code

line2 = Replace(line, "<IMG SRC=""http://www.funnymail.com/webdata/cs/", "")
line2 = Replace(line2, """></P>", "")
mrpath = "C:/Documents and Settings/Administrator.SHAWN-9W8E523KB/Local Settings/Temporary Internet Files/" & line2
Response.Write mrpath
Response.end

now if line2 was initially equal to <IMG SRC="http://www.funnymail.com/webdata/cs/20030422.gif"></p> you would think that this code would return "C:/Documents and Settings/Administrator.SHAWN-9W8E523KB/Local Settings/Temporary Internet Files/20030422.gif", right? Look at what it returns

C:/Documents and Settings/Administrator.SHAWN-9W8E523KB/Local Settings/Temporary Internet Files/ 20030422.gif

notice that the space between the filename at the end and the folder "tempory internet files". This is driving me crazy, this code should return a filename without the space at the beginning. Instead it produces the wrong filename and i can't use that with the FSO, because it doesn't exist. HeLLLLLLLLLLLLLLLPPPPPPPPP!

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 4:37pm
oops, i forgot to mention that the augmentation occurs somewhere between lines 2 and 3. It comes out fine when i print it out after line 2. but then it somewhere changes by the end of line 3.
Back to Top
Mikeap View Drop Down
Newbie
Newbie


Joined: 12 March 2003
Location: United States
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikeap Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 5:22pm
Remove all spaces in line 2 and 3 ... see if it works?
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 5:30pm
no go, still with the space
Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 5:50pm

Just as a test, try mrpath = ... & line2 & "test" and tell me what it prints out.

Blair

Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
Mikeap View Drop Down
Newbie
Newbie


Joined: 12 March 2003
Location: United States
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikeap Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 5:54pm
On the mrpath = ... its been my experience to remove the spaces after before and after the &
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 8:03pm
C:/Documents and Settings/Administrator.SHAWN-9W8E523KB/Local Settings/Temporary Internet Files/ 20030422.giftest
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 8:04pm
whitespace doesn't matter mikeap
Back to Top
 Post Reply Post Reply Page  12>

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.