Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. URLEncoder

URLEncoder

Scheduled Pinned Locked Moved C / C++ / MFC
c++javaquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John Bosko
    wrote on last edited by
    #1

    Hi, What's the equivalent of JAVA's "URLEncoder.encode" in VC++? or is there an alternate way of encoding to be compatable with Java's "URLDecoder.decode"? Many Thanks, John:confused:

    J 1 Reply Last reply
    0
    • J John Bosko

      Hi, What's the equivalent of JAVA's "URLEncoder.encode" in VC++? or is there an alternate way of encoding to be compatable with Java's "URLDecoder.decode"? Many Thanks, John:confused:

      J Offline
      J Offline
      Jon Hulatt
      wrote on last edited by
      #2

      Write one! it's not hard. 1. replace any occurance of space " " with "+". 2. any character that is not A-Z a-z 0-9 - . _ is replaced with the token %XX where XX is the string hex representation of the ascii character it replaces. Signature space for rent. Apply by email to....

      J 1 Reply Last reply
      0
      • J Jon Hulatt

        Write one! it's not hard. 1. replace any occurance of space " " with "+". 2. any character that is not A-Z a-z 0-9 - . _ is replaced with the token %XX where XX is the string hex representation of the ascii character it replaces. Signature space for rent. Apply by email to....

        J Offline
        J Offline
        John Bosko
        wrote on last edited by
        #3

        Hi, I've written a code which replaces characters in a string with their respective URLEncode (i.e a " " will be replaced by "+" etc..). However the code crashes at execution. Please help!! Here's the code extract; Code: ------------------------------------------------------------------------------ for(j=0;j

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups