URL encoder in c++

Discussion in 'C++' started by metaosp, Feb 11, 2006.

  1. metaosp

    metaosp Guest

    Hi,

    Could anyone suggest a nice, small url encoder/decoder class (or
    function) with source code?


    Thanks,
    Metaosp
     
    metaosp, Feb 11, 2006
    #1
    1. Advertising

  2. metaosp

    TB Guest

    metaosp sade:
    > Hi,
    >
    > Could anyone suggest a nice, small url encoder/decoder class (or
    > function) with source code?
    >
    >


    Since a URI is only allowed to contain US-ASCII characters, all you
    have to do is search through the string and replace each illegal
    character with '%' + hexadecimal code. And space must be encoded
    as '%20'. www.w3.org provides a complete specification, which
    is not that long or hard to grasp. But remember not to encode
    actual delimiters in the URI.

    --
    TB @ SWEDEN
     
    TB, Feb 11, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ronny Hengst

    manchester encoder

    Ronny Hengst, Aug 7, 2003, in forum: VHDL
    Replies:
    4
    Views:
    6,828
    Jonathan Bromley
    Aug 8, 2003
  2. Gietek

    N_bit decoder/encoder

    Gietek, Dec 3, 2003, in forum: VHDL
    Replies:
    4
    Views:
    651
    Charles M. Elias
    Dec 4, 2003
  3. Fred Bartoli

    Pipelined binary encoder

    Fred Bartoli, Nov 7, 2004, in forum: VHDL
    Replies:
    1
    Views:
    740
    Jonathan Bromley
    Nov 10, 2004
  4. jpereira

    Bit stuffing in a Crc encoder

    jpereira, May 25, 2005, in forum: VHDL
    Replies:
    4
    Views:
    1,448
    Mike Treseler
    May 31, 2005
  5. iMonkey

    encoder.GetString() help

    iMonkey, Jul 31, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    432
    iMonkey
    Jul 31, 2003
Loading...

Share This Page