URLencode and Netscape...why the + instead of %20?

They have: 11 posts

Joined: Aug 2001

In my ASP code I have this

picLink=server.URLEncode(stripfilename(oThisFolder))
%>
<?php
=picLink
?>
">

when oThisFolder = "WT Park"
picLink = "WT+Park"

why does it not use the %20???
When it tries to locate the JPG, it cannot...because of the +

(ps - stripfilename just takes the path out of the string)

Thanks!

"I'm a singer, not a programmer!"
[url]www.keithlubrant.com[/url]

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Actually, it should probably be doing that (inserting +) with IE to.

Try using Server.URLPathEncode instead, let me know how it goes!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.