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. Web Development
  3. ASP.NET
  4. Special Character Replacement

Special Character Replacement

Scheduled Pinned Locked Moved ASP.NET
helpquestionalgorithms
2 Posts 2 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.
  • M Offline
    M Offline
    Marc Paliotti
    wrote on last edited by
    #1

    I have RSS feeds displaying on an asp web page. One problem, it is displaying supposedly quotation marks but instead it is displaying a square. I checked in source and saw that it was a question mark. When I tried doing a InStr() and searching for either a quotation mark or a question, I didn't get anything back. Has anyone ever come accross this issue before in ASP?

    G 1 Reply Last reply
    0
    • M Marc Paliotti

      I have RSS feeds displaying on an asp web page. One problem, it is displaying supposedly quotation marks but instead it is displaying a square. I checked in source and saw that it was a question mark. When I tried doing a InStr() and searching for either a quotation mark or a question, I didn't get anything back. Has anyone ever come accross this issue before in ASP?

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      It sounds like you have a problem with encoding. If the RSS feed is encoded using a specific character set, you have display it using the same character set. The quotation marks in your RSS is probably not the regular inch sign (") that is usually used as a quotation mark, but typographic quotation marks. They are not in the lower 128 characters (ASCII equivalent) of the character set, so if you mess upp the encoding, their character code might not correspond to any character in the character set used. Those are usually displayed as squares. When decoded to unicode using the wrong encoding, they will be converted to question marks. As RSS is XML, my first guess would be UTF-8 encoding. Check the source of the XML to see if it specifies any encoding.

      --- Year happy = new Year(2007);

      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