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. Problem with CHttpFile and HTML

Problem with CHttpFile and HTML

Scheduled Pinned Locked Moved C / C++ / MFC
helphtmltutorialquestion
1 Posts 1 Posters 0 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.
  • S Offline
    S Offline
    Sylv33
    wrote on last edited by
    #1

    Hello, For one of my company's projects I'm using CHttpConnection and CHttpFile to download HTML files from different web sites. I then extract some data as well as certain links from these files. The problem is that sometimes the HTML files contain character codes for certain characters instead of the actual character (%3F instead of ? for example), which is problematic when extracting the data. What's strange is that sometimes the *same* HTML file will contain character codes, and sometimes it will contain the actual character, which is even more problematic. I would like the downloaded HTML files to be in a normal "readable" format. Do I have to parse the files and convert the characters myself? Maybe I'm just missing something unfortunately I'm don't know much about the details of HTTP. Here are my relevant HTTP headers in case this is the source of the problem: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Language: fr Hope someone can help!! Sylv33

    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