Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: Days of the week Pin
Justin Perez13-Aug-07 4:52
Justin Perez13-Aug-07 4:52 
GeneralRe: Days of the week Pin
kibromg13-Aug-07 5:06
kibromg13-Aug-07 5:06 
GeneralRe: Days of the week Pin
Justin Perez13-Aug-07 5:10
Justin Perez13-Aug-07 5:10 
GeneralRe: Days of the week Pin
kibromg13-Aug-07 5:18
kibromg13-Aug-07 5:18 
GeneralRe: Days of the week Pin
Justin Perez13-Aug-07 5:20
Justin Perez13-Aug-07 5:20 
AnswerRe: Days of the week Pin
Michael Potter13-Aug-07 4:57
Michael Potter13-Aug-07 4:57 
Questionhow I can get non-english letters from e-mail? Pin
Tsvi Girsh13-Aug-07 3:39
Tsvi Girsh13-Aug-07 3:39 
AnswerRe: how I can get non-english letters from e-mail? Pin
m@u13-Aug-07 6:57
m@u13-Aug-07 6:57 
hi
it's a mime encoded line:

=?KOI8-R?B?49fJIOfJ0ts=?= means:

KOI8-R is the ascii encoding

B is the encoding method

B = Base64
Q = Quoted printable

and 49fJIOfJ0ts= is the content

to get Цви Гирш from "=?KOI8-R?B?49fJIOfJ0ts=?=" you do the following:


string s = "=?KOI8-R?B?49fJIOfJ0ts=?=";
string[] frg = s.Substring(2,s.Length-4).Split('?');
if (frg.Length == 3)
{
	string encoding = frg[0];
	string method = frg[1];
	string content = frg[2];
	switch (method.ToUpper())
	{
		case "B":
		{
			System.Text.Encoding enc = System.Text.Encoding.GetEncoding(encoding);
			byte[] val = Convert.FromBase64String(content);
			string text = enc.GetString(val);
			System.Windows.Forms.MessageBox.Show(text);
			break;
		}
		case "Q":
		{
			//your Quoted printable handling here...
			break;
		}
	}
}


hope this helps
M@u
GeneralRe: how I can get non-english letters from e-mail? Pin
Michael Sync13-Aug-07 16:12
Michael Sync13-Aug-07 16:12 
GeneralRe: how I can get non-english letters from e-mail? Pin
Tsvi Girsh13-Aug-07 22:58
Tsvi Girsh13-Aug-07 22:58 
QuestionProblem with Property Grid Pin
rajeevktripathi13-Aug-07 3:33
rajeevktripathi13-Aug-07 3:33 
AnswerRe: Problem with Property Grid Pin
leppie13-Aug-07 5:13
leppie13-Aug-07 5:13 
QuestionRe: Problem with Property Grid Pin
rajeevktripathi13-Aug-07 19:10
rajeevktripathi13-Aug-07 19:10 
QuestionBasic question about memory allocation Pin
A M SOMAN13-Aug-07 3:24
A M SOMAN13-Aug-07 3:24 
AnswerRe: Basic question about memory allocation Pin
blakey40413-Aug-07 3:26
blakey40413-Aug-07 3:26 
GeneralRe: Basic question about memory allocation Pin
A M SOMAN13-Aug-07 3:36
A M SOMAN13-Aug-07 3:36 
GeneralRe: Basic question about memory allocation Pin
blakey40413-Aug-07 3:39
blakey40413-Aug-07 3:39 
GeneralRe: Basic question about memory allocation Pin
N a v a n e e t h13-Aug-07 3:52
N a v a n e e t h13-Aug-07 3:52 
QuestionHow to connect to Remote PC using C# Coding? Pin
N a r e s h P a t e l13-Aug-07 3:20
N a r e s h P a t e l13-Aug-07 3:20 
AnswerRe: How to connect to Remote PC using C# Coding? Pin
Justin Perez13-Aug-07 3:24
Justin Perez13-Aug-07 3:24 
GeneralRe: How to connect to Remote PC using C# Coding? Pin
N a r e s h P a t e l13-Aug-07 3:32
N a r e s h P a t e l13-Aug-07 3:32 
GeneralRe: How to connect to Remote PC using C# Coding? Pin
Justin Perez13-Aug-07 3:45
Justin Perez13-Aug-07 3:45 
AnswerRe: How to connect to Remote PC using C# Coding? Pin
Michael Sync13-Aug-07 16:36
Michael Sync13-Aug-07 16:36 
QuestionHow to find the item that selected in ListView ? Pin
Yanshof13-Aug-07 3:09
Yanshof13-Aug-07 3:09 
AnswerRe: How to find the item that selected in ListView ? Pin
Justin Perez13-Aug-07 3:12
Justin Perez13-Aug-07 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.