Email header
-
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)
-
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)
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.