﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Релиб / Программирование / .NET / C#  / Подскажите как получить читабельную кодировку / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Релиб</description><link>http://www.relib.com/forums/</link><webMaster>robot@relib.com</webMaster><lastBuildDate>Mon, 08 Sep 2008 01:34:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Подскажите как получить читабельную кодировку</title><link>http://www.relib.com/forums/Topic916587-26-1.aspx</link><description>Надо читать в той кодировке в которой отвечает сервер. Она может быть разной у разных страниц. Название кодировки указывается сервером в http заголовке Content-Type и может быть прочитано из свойства ContentEncoding.&lt;/P&gt;&lt;P&gt;reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding(response.ContentEncoding));</description><pubDate>Wed, 21 Nov 2007 18:24:22 GMT</pubDate><dc:creator>bazile</dc:creator></item><item><title>Подскажите как получить читабельную кодировку</title><link>http://www.relib.com/forums/Topic916587-26-1.aspx</link><description>&lt;SPAN class=itemCommentText&gt;&lt;P&gt;Получаю через httpwebresponse данные, загоняю в стрим, но они не читабельны...&lt;/P&gt;&lt;P&gt;reader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding(1251));&lt;/P&gt;&lt;P&gt;Подскажите, что делать с кодировкой&lt;/P&gt;&lt;/SPAN&gt;</description><pubDate>Tue, 20 Nov 2007 14:13:37 GMT</pubDate><dc:creator>Csharp</dc:creator></item></channel></rss>