Deprecated: Function set_magic_quotes_runtime() is deprecated in /usr/local/apache/sites/mcse.ms/htdocs/362/includes/class_core.php on line 1505 Call Stack: 0.0001 326576 1. {main}() /usr/local/apache/sites/mcse.ms/htdocs/362/archive/index.php:0 0.0005 327428 2. require_once('/usr/local/apache/sites/mcse.ms/htdocs/362/archive/global.php') /usr/local/apache/sites/mcse.ms/htdocs/362/archive/index.php:25 0.0008 328716 3. require_once('/usr/local/apache/sites/mcse.ms/htdocs/362/includes/init.php') /usr/local/apache/sites/mcse.ms/htdocs/362/archive/global.php:20 0.0021 403020 4. vB_Registry->vB_Registry() /usr/local/apache/sites/mcse.ms/htdocs/362/includes/init.php:43 0.0022 403676 5. vB_Input_Cleaner->vB_Input_Cleaner() /usr/local/apache/sites/mcse.ms/htdocs/362/includes/class_core.php:2337
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /archive/global.php on line 26

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3113

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265
bug in HttpWebRequest? [Archive] - MCSE

PDA

View Full Version : bug in HttpWebRequest?


z. f.
03-28-04, 03:20 AM
something
using HttpWebRequest to make HTTP request t web server and get resulting
HTML in the response, when the response includes hebrew characters (not
unicode) these characters are moved away after

StreamReader reader = new StreamReader ( response.GetResponseStream() );
strHTML = reader.ReadToEnd();

is there anyway to save all the data came with the response using this
object?

TIA.

Ianier Munoz
03-28-04, 09:19 AM
something
Try the following:
StreamReader reader = new StreamReader(response.GetResponseStream(),
response.ContentEncoding);
Hope it helps,
--
Ianier Munoz
http://www.chronotron.com


"z. f." <zigi@info-scopeREMSPAM.co.il> wrote in message
news:Omr9YiJFEHA.2540@TK2MSFTNGP12.phx.gbl...
> using HttpWebRequest to make HTTP request t web server and get resulting
> HTML in the response, when the response includes hebrew characters (not
> unicode) these characters are moved away after
>
> StreamReader reader = new StreamReader ( response.GetResponseStream() );
> strHTML = reader.ReadToEnd();
>
> is there anyway to save all the data came with the response using this
> object?
>
> TIA.
>
>
>

z. f.
03-28-04, 11:23 AM
something
thanx, it worked,
even though it worked with
System.Text.Encoding.GetEncoding( "windows-1255")
because response.ContentEncoding returns empty string.
(i checked the HTTP response headers, and it does not include encoding
information, the browser looks in the HTML META tag for that, and that what
i gave the StreamReader class.)


"Ianier Munoz" <ianier[nospam]@hotmail.com> wrote in message
news:eYVLNxMFEHA.628@TK2MSFTNGP10.phx.gbl...
> Try the following:
> StreamReader reader = new StreamReader(response.GetResponseStream(),
> response.ContentEncoding);
> Hope it helps,
> --
> Ianier Munoz
> http://www.chronotron.com
>
>
> "z. f." <zigi@info-scopeREMSPAM.co.il> wrote in message
> news:Omr9YiJFEHA.2540@TK2MSFTNGP12.phx.gbl...
>
>

Feroze [MSFT]
04-05-04, 02:28 AM
something
If you look at my blog (given below), there is some code there which shows
you how to get the correct encodings. This will make sure that you dont lose
data.

--
feroze
http://weblogs.asp.net/feroze_daud
============

Remove "user" from the email address to reply to the author.

This posting is provided "AS IS" with no warranties, and confers no rights

Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm




"z. f." <zigi@info-scopeREMSPAM.co.il> wrote in message
news:uv2Ju4NFEHA.3980@TK2MSFTNGP12.phx.gbl...
> thanx, it worked,
> even though it worked with
> System.Text.Encoding.GetEncoding( "windows-1255")
> because response.ContentEncoding returns empty string.
> (i checked the HTTP response headers, and it does not include encoding
> information, the browser looks in the HTML META tag for that, and that
what
> i gave the StreamReader class.)
>
>
> "Ianier Munoz" <ianier[nospam]@hotmail.com> wrote in message
> news:eYVLNxMFEHA.628@TK2MSFTNGP10.phx.gbl...
resulting[color=blue]
(not[color=blue]
response.GetResponseStream() );[color=blue]
>
>

vBulletin v3.6.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.