Convert string to URL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • randy

    Convert string to URL

    Hi,

    I have a url stored in a config file and when I retrieve it and store as a
    string it does not look like the url (see below).

    URL in config is:


    Stirng output is:
    "\https://test.com/test.cfm\"

    I tried using URLPathEncode and it returns the same string. What is the
    deal?

    Thanks



  • KJ

    #2
    Re: Convert string to URL

    Where do you see the string with the additional backslashes? Are you
    looking at the string in one of the debugger windows?

    randy wrote:
    Hi,
    >
    I have a url stored in a config file and when I retrieve it and store as a
    string it does not look like the url (see below).
    >
    URL in config is:

    >
    Stirng output is:
    "\https://test.com/test.cfm\"
    >
    I tried using URLPathEncode and it returns the same string. What is the
    deal?
    >
    Thanks

    Comment

    • randy

      #3
      Re: Convert string to URL

      I viewed it in the command window.

      "KJ" <n_o_s_p_a__m@m ail.comwrote in message
      news:1156950692 .210295.175480@ 74g2000cwt.goog legroups.com...
      Where do you see the string with the additional backslashes? Are you
      looking at the string in one of the debugger windows?
      >
      randy wrote:
      >Hi,
      >>
      >I have a url stored in a config file and when I retrieve it and store as
      >a
      >string it does not look like the url (see below).
      >>
      >URL in config is:
      >https://test.com/test.cfm
      >>
      >Stirng output is:
      >"\https://test.com/test.cfm\"
      >>
      >I tried using URLPathEncode and it returns the same string. What is the
      >deal?
      >>
      >Thanks
      >

      Comment

      • KJ

        #4
        Re: Convert string to URL

        Then your string is OK. The debugger windows add the backslashes as
        escape characters for the quotation marks.

        randy wrote:
        I viewed it in the command window.
        >
        "KJ" <n_o_s_p_a__m@m ail.comwrote in message
        news:1156950692 .210295.175480@ 74g2000cwt.goog legroups.com...
        Where do you see the string with the additional backslashes? Are you
        looking at the string in one of the debugger windows?

        randy wrote:
        Hi,
        >
        I have a url stored in a config file and when I retrieve it and store as
        a
        string it does not look like the url (see below).
        >
        URL in config is:

        >
        Stirng output is:
        "\https://test.com/test.cfm\"
        >
        I tried using URLPathEncode and it returns the same string. What is the
        deal?
        >
        Thanks

        Comment

        Working...