Solved

how to url encode a string?

Posted on 2000-03-27
2
556 Views
Last Modified: 2013-11-20
Does anyone know the simplest way to URL encode a CString?

I need to pass in the text "hello world".  This will create a url like:

  www.somewhere.org/file.html/?hello+world

Is there an mfc function I can call to url encode a cstring for me?

Thanks for any help,

Tim
0
Comment
Question by:TimB
2 Comments
 
LVL 9

Accepted Solution

by:
ShaunWilde earned 50 total points
ID: 2660212
I don't know about MFC but they are definitely function in the wininet library

have a look at InternetCanonicalizeUrl
0
 
LVL 1

Author Comment

by:TimB
ID: 2747507
Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 223
How to create frequencies of a variable from SAS dataset? 10 133
Unix / Linux grid computing 5 163
fizzArray  challenge 1 96
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question