Click here to Skip to main content
16,019,140 members
Home / Discussions / C#
   

C#

 
AnswerRe: White Board Pin
Christian Graus11-Jun-08 19:44
protectorChristian Graus11-Jun-08 19:44 
GeneralRe: White Board Pin
Usharva11-Jun-08 19:52
Usharva11-Jun-08 19:52 
QuestionC# error Pin
Susanmat11-Jun-08 19:18
Susanmat11-Jun-08 19:18 
AnswerRe: C# error Pin
Christian Graus11-Jun-08 19:43
protectorChristian Graus11-Jun-08 19:43 
AnswerRe: C# error Pin
AB777111-Jun-08 20:15
AB777111-Jun-08 20:15 
AnswerRe: C# error Pin
Guffa12-Jun-08 5:50
Guffa12-Jun-08 5:50 
QuestionRe: using HTTP as transportaion protocol in winodws application Pin
RameshwerE11-Jun-08 18:57
RameshwerE11-Jun-08 18:57 
QuestionConverting German characters like 'ß' using codepage 850 Pin
Tushar Mahajan11-Jun-08 18:40
Tushar Mahajan11-Jun-08 18:40 
Hi All,

I have a text file having german text. The Text contains some special characters like 'ß','Ä','Ü' etc. i want to convert the text using codepage 850. But after conversion it is showing garbage for above characters.This might happen because these characters are incorrectly translated due to incorrect coding of translation table for code page 850. What should i do to display these characters properly after conversion?

I am using following code for doing that

//Create a new stream for the input file
StreamReader stream = null;

stream = new StreamReader(@"D:\SampleGermanText.txt", Encoding.GetEncoding(850), true);

string strLine = stream.ReadLine();
while (stream.EndOfStream == false) //loop until end of the file.
{
LogMessage(strLine);
strLine = stream.ReadLine();
}

stream.Close();

Thanks,
Tushar
AnswerRe: Converting German characters like 'ß' using codepage 850 Pin
Daniel Grunwald12-Jun-08 0:23
Daniel Grunwald12-Jun-08 0:23 
QuestionHow to debug in unmanaged COM in x64? Pin
RYU^^11-Jun-08 18:39
RYU^^11-Jun-08 18:39 
QuestionPST Pin
mohant$.net11-Jun-08 18:23
mohant$.net11-Jun-08 18:23 
QuestionClass Library Problems... Pin
Illegal Operation11-Jun-08 17:30
Illegal Operation11-Jun-08 17:30 
AnswerRe: Class Library Problems... Pin
S. Senthil Kumar11-Jun-08 18:25
S. Senthil Kumar11-Jun-08 18:25 
GeneralRe: Class Library Problems... Pin
Illegal Operation11-Jun-08 18:32
Illegal Operation11-Jun-08 18:32 
Questionstatic property Pin
George_George11-Jun-08 16:49
George_George11-Jun-08 16:49 
AnswerRe: static property Pin
N a v a n e e t h11-Jun-08 16:54
N a v a n e e t h11-Jun-08 16:54 
GeneralRe: static property Pin
George_George11-Jun-08 18:52
George_George11-Jun-08 18:52 
GeneralRe: static property Pin
User 665811-Jun-08 19:02
User 665811-Jun-08 19:02 
GeneralRe: static property Pin
George_George11-Jun-08 19:12
George_George11-Jun-08 19:12 
AnswerRe: static property Pin
Christian Graus11-Jun-08 17:24
protectorChristian Graus11-Jun-08 17:24 
GeneralRe: static property Pin
George_George11-Jun-08 18:53
George_George11-Jun-08 18:53 
AnswerRe: static property Pin
S. Senthil Kumar11-Jun-08 18:30
S. Senthil Kumar11-Jun-08 18:30 
GeneralRe: static property Pin
George_George11-Jun-08 18:54
George_George11-Jun-08 18:54 
AnswerRe: static property Pin
User 665811-Jun-08 18:34
User 665811-Jun-08 18:34 
GeneralRe: static property Pin
George_George11-Jun-08 18:54
George_George11-Jun-08 18:54 

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.