> here what i wrote
>
[quoted text clipped - 7 lines]
> encoding format.
> StreamReader readStream = new StreamReader( receiveStream, encode );
Note that you can use StreamReader's default constructor, because it uses
UTF-8.
> //Console.WriteLine("\r\nResponse stream received.");
>
[quoted text clipped - 9 lines]
> String str = new String(read, 0, count);
> Console.Write(str);
You can dump the character array right to the console. There's no reason to
create yet another string within each iteration.
> tot_str=tot_str+str;
You should use a StringBuilder here.
> Console.WriteLine();
> String curr_line = str;
curr_line is never being used.
> count = readStream.Read(read, 0, 256);
> }
[quoted text clipped - 7 lines]
> string s = System.Text.Encoding.Default.GetString(data);
> string s1 =System.Text.Encoding.UTF8.GetString(tot_str);
I'm not sure what that code is supposed to be good for. There is no method
"string System.Text.Encoding.GetString(string s)"
because it makes no sense at all...
> // here within s and s1 string i dont get the desired data
Save for the non-existing method mentioned already, this is a null
operation. You encode a string and decode it back again.
> what i need is instead of /r,/t,/n there should be respective tags or
> can able to remove from there like in normal html pages we have
There are no HTML tags for CR, TAB or LF. There is <br />, but this has
nothing to do with any end-of-line character. The former creates a line
break in the rendered HTML, the latter a line break in the HTML source. What
are you actually trying to achieve?
Cheers,

Signature
Joerg Jooss
www.joergjooss.de
news@joergjooss.de
anil mane - 03 Jan 2005 18:41 GMT
thanks for quick response ...
what i need is
create an html page and dumb down the output value
now if i dumb as it is like text containing of /r,/t,/n
i wont be able to properly in html page
let try to copy bellow text and save as test.htm
<span class=\"normaltext\">\r\n\t<strong>b.tech/b.e.</strong>\r\n\t
\r\n\t\t\t(Automobile) \r\n\t </span>
now we wont be able to get the desire output if we have a look at
test.htm
i hope it would be clear
As i am newbie to this technology i will be thankful to your help
.................
Joerg Jooss - 04 Jan 2005 09:39 GMT
> thanks for quick response ...
>
[quoted text clipped - 11 lines]
>
> i hope it would be clear
I'm afraid not really...

Signature
Joerg Jooss
www.joergjooss.de
news@joergjooss.de