<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66374</guid>
        <pubDate>Tue, 11 Mar 2003 19:10:05 +0000</pubDate>
        <title>Windows-1251</title>
        <link>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66374</link>
        <description><![CDATA[Grisha: Это ниче что я тут на Билдере пишу, может на Дельфях надо?]]></description>
        <author>Grisha</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66372</guid>
        <pubDate>Tue, 11 Mar 2003 18:11:57 +0000</pubDate>
        <title>Windows-1251</title>
        <link>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66372</link>
        <description><![CDATA[Grisha: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>Song, 11.03.03, 21:01:41</span><div class='quote '>И где же она эта твоя отправка? Вижу только закрытие и открытие сокета.</div></div><br><br>Song, отправка и получение данных все есть.<br><br>void __fastcall TProcessForm::ClientSocket1Write(TObject *Sender, TCustomWinSocket *Socket)<br>{<br> &nbsp; &nbsp;Socket-&gt;SendText(TextToSend);<br>}<br><br>void __fastcall TProcessForm::ClientSocket1Read(TObject *Sender, TCustomWinSocket *Socket)<br>{<br> &nbsp; &nbsp;ReceivedText += Socket-&gt;ReceiveText();<br>}<br><br>Он же ж отправляет данные нормально и получает готовую html-страницу, но только иногда она приходит в KOI8-R. Как добиться всегда Windows-1251??? Может быть у меня что-то в заголовке не так? Я пробовал Win-1251, тоже не работает...<br><br>]]></description>
        <author>Grisha</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66370</guid>
        <pubDate>Tue, 11 Mar 2003 18:01:41 +0000</pubDate>
        <title>Windows-1251</title>
        <link>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66370</link>
        <description><![CDATA[Song: И где же она эта твоя отправка? Вижу только закрытие и открытие сокета.]]></description>
        <author>Song</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66368</guid>
        <pubDate>Mon, 10 Mar 2003 20:56:34 +0000</pubDate>
        <title>Windows-1251</title>
        <link>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66368</link>
        <description><![CDATA[Grisha: &nbsp; &nbsp;Song! Вот мой код (рабочий, на билдере):<br> &nbsp; &nbsp;// отправка данных<br> &nbsp; &nbsp;TStringList *Items = new TStringList();<br> &nbsp; &nbsp;TRY<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(f-&gt;METHOD + &quot; &quot; + MakeURL(CurrentURL, f-&gt;action) + &quot; HTTP/1.0&quot;);<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(&quot;Content-Type: application/x-www-form-urlencoded&quot;);<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(&quot;Accept-CharSet: Windows-1251&quot;);<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(&quot;User-Agent: Mozilla/3.0 (compatible; BuilderC++)&quot;);<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(&quot;Host: &quot; + ExtractHost(CurrentURL));<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(&quot;Content-Length: &quot; + Content.Length()));<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(&quot;&quot;);<br> &nbsp; &nbsp; &nbsp; &nbsp;Items-&gt;Add(Content);<br> &nbsp; &nbsp; &nbsp; &nbsp;TextToSend = Items-&gt;Text;<br> &nbsp; &nbsp;FINALLYD(Items)<br> &nbsp; &nbsp;ClientSocket1-&gt;Close();<br> &nbsp; &nbsp;ClientSocket1-&gt;Host = ExtractHost(CurrentURL);<br> &nbsp; &nbsp;ClientSocket1-&gt;Open();]]></description>
        <author>Grisha</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66366</guid>
        <pubDate>Mon, 10 Mar 2003 06:47:05 +0000</pubDate>
        <title>Windows-1251</title>
        <link>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66366</link>
        <description><![CDATA[Song: Через TClientSocket ?<br>Нужен код.]]></description>
        <author>Song</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66364</guid>
        <pubDate>Sun, 09 Mar 2003 18:58:12 +0000</pubDate>
        <title>Windows-1251</title>
        <link>https://forum.sources.ru/index.php?showtopic=5860&amp;view=findpost&amp;p=66364</link>
        <description><![CDATA[Grisha: Можно ли добиться получения html-страниц только <br>в кодировке Windows-1251?<br><br>Через TClientSocket я отправляю запрос на несколько<br>сайтов, где в одной из строк указываю:<br><br>&quot;Accept-CharSet: Windows-1251&quot;<br><br>Но некоторые все же возвращают страницу в KOI8-R.<br>Может что-то не так?]]></description>
        <author>Grisha</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	