websafe_tag - use %20 instead of + ?
Posted: 05 November 2007 03:05 PM   [ Ignore ]
Member
Avatar
RankRankRank
Total Posts:  65
Joined  2005-03-31

I think I’d prefer the websafe_tag to use   as a space instead of the plus sign—that way, when you use {segment_3} or some such on your page, the spaces will get converted back into real spaces.

Any chance you can change this?

TTFN
Travis

Profile
 
 
Posted: 05 November 2007 03:51 PM   [ Ignore ]   [ # 1 ]
Jr. Member
RankRank
Total Posts:  45
Joined  2005-04-24

  really isn’t websafe; that’s why there is a websafe tag.  If you’re using segment_3, you’d be best to use something like the find and replace plugin to strip out the +.

Profile
 
 
Posted: 05 November 2007 04:15 PM   [ Ignore ]   [ # 2 ]
Member
Avatar
RankRankRank
Total Posts:  65
Joined  2005-03-31

What’s not Web safe about ?

TTFN
Travis

Profile
 
 
Posted: 05 November 2007 06:12 PM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  45
Joined  2005-04-24

I believe spaces themselves are simply not valid characters in in the specs for URLs.  Browsers recognize them through the use of ,, but as we both know, browsers don’t always conform to the specs.

I may be incorrect in that being the reason, but it has always been my understanding.

Profile
 
 
Posted: 05 November 2007 06:49 PM   [ Ignore ]   [ # 4 ]
Member
Avatar
RankRankRank
Total Posts:  65
Joined  2005-03-31

  is the official way to encode a space character, according to the RFC:

http://www.faqs.org/rfcs/rfc1738.html

PHP’s “urlencode” function does use the + sign: http://ca3.php.net/urlencode but javascript’s “escape” encoding doesn’t use a plus, it uses : http://www.w3schools.com/jsref/jsref_escape.asp . PHP has a function “rawurlencode” that properly encodes the space character.

I suppose, if EE properly UNencoded the plus sign, this would still be wrong but wouldn’t be a problem for me.  But as it is…

TTFN
Travis

Profile
 
 
Posted: 05 November 2007 09:44 PM   [ Ignore ]   [ # 5 ]
Jr. Member
RankRank
Total Posts:  45
Joined  2005-04-24

Well then, sorry Travis - I should have read up more.  Still, I wouldn’t want   in my URLs, I don’t think it looks so nice.  In the meantime,the find and replace plugin can still help you with an immediate solution. =)

Profile