Results 1 to 3 of 3

Thread: URLEncoder/URLDecoder

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    URLEncoder/URLDecoder

    What do you guys think about these two classes? Do you think that all URL strings should be inspected to see if the filenames contain any spaces or embeded characters such as #$%+=$ or should URL's all be encoded regardless just to be on the safe side?

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    URL encoding refers to the encoding of the special characters such as spaces and others, am I right? In that case you wouldn't encode a URL string 'just to be on the safer side'. If a URL contains spaces and special characters, these characters will be encoded. If it doesn't, there is no question of encoding.

    Or have I misunderstood your question?

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Posted by HoneyBee
    If a URL contains spaces and special characters, these characters will be encoded. If it doesn't, there is no question of encoding.
    Right. If the URL dosen't contain these characters then the URL wouldn't have to be encoded. But as a precautionary measure if you encoded all URL's you are working with then the ones with special characters would be encoded and the ones without wouldn't. Id rather run them through an encoding process then having to inspect each one.

    But as for your first sentence, if the URL does contain special characters then i think you must phiscally encode the string using the URLEncoder class.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width