Click here to Skip to main content
15,906,097 members
Home / Discussions / C#
   

C#

 
GeneralRe: general help Pin
hotthoughtguy8-Jan-10 8:31
hotthoughtguy8-Jan-10 8:31 
AnswerRe: general help Pin
Bassam Saoud8-Jan-10 12:37
Bassam Saoud8-Jan-10 12:37 
QuestionMessage Removed Pin
8-Jan-10 6:50
Omoniyi Ogunderu8-Jan-10 6:50 
AnswerRe: DATABASE PATH DECOMPRESSION AND COMPRESSION. Pin
Saksida Bojan8-Jan-10 7:07
Saksida Bojan8-Jan-10 7:07 
QuestionRegarding C# Application Pin
xfailzx8-Jan-10 5:59
xfailzx8-Jan-10 5:59 
AnswerRe: Regarding C# Application Pin
Bassam Saoud8-Jan-10 12:39
Bassam Saoud8-Jan-10 12:39 
GeneralRe: Regarding C# Application Pin
xfailzx9-Jan-10 20:25
xfailzx9-Jan-10 20:25 
QuestionHow to parse special chars Pin
Aljaz1118-Jan-10 5:37
Aljaz1118-Jan-10 5:37 
I have to parse html with charset=iso-8859-2. I am getting html string now like this:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(http://www.koroska-on.net/index.php?option=com_glossary&func=display&letter=All&Itemid=0&catid=66&page=1);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

Stream resStream = response.GetResponseStream();

int count = 0;
            byte[] buffer = new byte[8192];
            do
            {
                count = resStream.Read(buffer, 0, buffer.Length);

                if (count != 0)
                {

                    tempString = Encoding.ASCII.GetString(buffer, 0, count);
                    html += tempString;
                }
            }
            while (count > 0);

Now specials are showed like ? or smt, because they aren't in ASCII range. How could i parse it with special chars showed normally?

Thanks,
Bye
AnswerRe: How to parse special chars Pin
Richard MacCutchan8-Jan-10 5:42
mveRichard MacCutchan8-Jan-10 5:42 
AnswerRe: How to parse special chars Pin
Luc Pattyn8-Jan-10 5:56
sitebuilderLuc Pattyn8-Jan-10 5:56 
GeneralRe: How to parse special chars Pin
Aljaz1118-Jan-10 8:35
Aljaz1118-Jan-10 8:35 
QuestionChecking if my gateway connected to internet (online) or not (offline)… Pin
3bood.ghzawi8-Jan-10 4:45
3bood.ghzawi8-Jan-10 4:45 
AnswerRe: Checking if my gateway connected to internet (online) or not (offline)… Pin
Dimitri Witkowski8-Jan-10 4:47
Dimitri Witkowski8-Jan-10 4:47 
GeneralRe: Checking if my gateway connected to internet (online) or not (offline)… Pin
Matt Meyer8-Jan-10 6:51
Matt Meyer8-Jan-10 6:51 
GeneralRe: Checking if my gateway connected to internet (online) or not (offline)… Pin
3bood.ghzawi9-Jan-10 1:08
3bood.ghzawi9-Jan-10 1:08 
QuestionDecrypting using MD5 Pin
3bood.ghzawi8-Jan-10 4:40
3bood.ghzawi8-Jan-10 4:40 
AnswerRe: Decrypting using MD5 Pin
EliottA8-Jan-10 4:41
EliottA8-Jan-10 4:41 
AnswerRe: Decrypting using MD5 Pin
OriginalGriff8-Jan-10 6:21
mveOriginalGriff8-Jan-10 6:21 
AnswerRe: Decrypting using MD5 Pin
Dave Kreskowiak8-Jan-10 6:53
mveDave Kreskowiak8-Jan-10 6:53 
Questionsaving a rendered web page Pin
manustone8-Jan-10 4:35
manustone8-Jan-10 4:35 
AnswerRe: saving a rendered web page Pin
Nicholas Butler8-Jan-10 5:21
sitebuilderNicholas Butler8-Jan-10 5:21 
GeneralRe: saving a rendered web page Pin
manustone8-Jan-10 5:46
manustone8-Jan-10 5:46 
GeneralRe: saving a rendered web page Pin
Nicholas Butler8-Jan-10 6:18
sitebuilderNicholas Butler8-Jan-10 6:18 
GeneralRe: saving a rendered web page Pin
manustone8-Jan-10 6:29
manustone8-Jan-10 6:29 
GeneralRe: saving a rendered web page Pin
manustone8-Jan-10 6:18
manustone8-Jan-10 6:18 

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.