• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 578
  • Last Modified:

how to url encode a string?

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
TimB
Asked:
TimB
1 Solution
 
ShaunWildeCommented:
I don't know about MFC but they are definitely function in the wininet library

have a look at InternetCanonicalizeUrl
0
 
TimBAuthor Commented:
Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now