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#
  4. Email header

Email header

Scheduled Pinned Locked Moved C#
csharpcomhelpquestion
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.
  • T Offline
    T Offline
    Tomas Petricek
    wrote on last edited by
    #1

    Hi, I have problem with email messages. I have downloaded email header and I'm trying to get subject of this message. If there are only english characters, everything is ok "Subject: emailsubject" But when I use other characters (I live in Czech Republic ;)) it looks like this: "Subject: =?iso-8859-2?Q?Email=20message=20with=20=BE=F8=E8?=" X| So I want to convert this " X| " to .Net string (UNICODE) Thank You PS: I have seen some code for this on CP http://www.codeproject.com/string/ammimeutils.asp[^], but it doesn't works with other codepages (I think)

    L 1 Reply Last reply
    0
    • T Tomas Petricek

      Hi, I have problem with email messages. I have downloaded email header and I'm trying to get subject of this message. If there are only english characters, everything is ok "Subject: emailsubject" But when I use other characters (I live in Czech Republic ;)) it looks like this: "Subject: =?iso-8859-2?Q?Email=20message=20with=20=BE=F8=E8?=" X| So I want to convert this " X| " to .Net string (UNICODE) Thank You PS: I have seen some code for this on CP http://www.codeproject.com/string/ammimeutils.asp[^], but it doesn't works with other codepages (I think)

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Have you tried looking at System.Text.Encoding.Default? That will return an Encoding for your default windows codepage. Dunno if it will work that :~ Good luck :) Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.

      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