Bartell, Aaron L. (TC) wrote:
Sure, right after I get done arguing about URL encoding last week I find
myself writing a socket program that needs to do it.  Boy, if that don't
beat all;-)

I am sending a stream of XML through a socket connection and am wondering if
I need to encode all of the '<', '>', '/', etc with %3C, %3E, and %2F
respectively?  And any other characters for that matter. . .

I am assuming I do need to do this so I am wondering if somebody knows of a
tool that somebody has already created to do the URL encoding so I can save
myself some time.
No, URL encoding is only applicable to URL's in an HTML document.
That is, if you have a need to dynamically generate an anchor tag in
your HTML document where the URL includes a query string, the
special characters in the query string need to be properly encoded.
URL encoding does not apply to any other situation.

Cheers!  Hans





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.