<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Нужно поменять кодировку utf-8 на windows-1251?</title>
	<atom:link href="http://php.infoniac.ru/utf-8_to_windows-1251.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://php.infoniac.ru/utf-8_to_windows-1251.html</link>
	<description>Уроки программирования от новичка новичкам</description>
	<lastBuildDate>Sun, 05 Feb 2012 06:15:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: proglammer</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-4490</link>
		<dc:creator>proglammer</dc:creator>
		<pubDate>Thu, 27 Oct 2011 18:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-4490</guid>
		<description>сам жалею, что упустил :(</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>сам жалею, что упустил <img src='http://php.infoniac.ru/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: temka</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-4438</link>
		<dc:creator>temka</dc:creator>
		<pubDate>Wed, 19 Oct 2011 09:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-4438</guid>
		<description>Программирование прошло мимо Вас...</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Программирование прошло мимо Вас&#8230;</p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: proglammer</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-3040</link>
		<dc:creator>proglammer</dc:creator>
		<pubDate>Wed, 20 Apr 2011 11:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-3040</guid>
		<description>смешно, да? :) мне тоже :) просто, часто, когда сам искал
информацию о чем-либо в и-нете, попадали настолько заумные статьи,
что нужно было ещё половину и-нета перерыть, что-бы понять о чем та
статья, которую я первую начал читать... потому решил попробовать
просто делиться опытом, мелкими шажками продвигаться, так
сказать... а этот пост, кстати, не мой. он остался от прежнего
владельца блога ;)</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>смешно, да? <img src='http://php.infoniac.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  мне тоже <img src='http://php.infoniac.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  просто, часто, когда сам искал<br />
информацию о чем-либо в и-нете, попадали настолько заумные статьи,<br />
что нужно было ещё половину и-нета перерыть, что-бы понять о чем та<br />
статья, которую я первую начал читать&#8230; потому решил попробовать<br />
просто делиться опытом, мелкими шажками продвигаться, так<br />
сказать&#8230; а этот пост, кстати, не мой. он остался от прежнего<br />
владельца блога <img src='http://php.infoniac.ru/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: Budulianin</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-3039</link>
		<dc:creator>Budulianin</dc:creator>
		<pubDate>Wed, 20 Apr 2011 11:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-3039</guid>
		<description>Уроки программирования от новичка новичкам - :D</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Уроки программирования от новичка новичкам &#8211; <img src='http://php.infoniac.ru/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: ValentinD</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-2849</link>
		<dc:creator>ValentinD</dc:creator>
		<pubDate>Sat, 26 Mar 2011 21:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-2849</guid>
		<description>где находится такой код</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>где находится такой код</p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: proglammer</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-1793</link>
		<dc:creator>proglammer</dc:creator>
		<pubDate>Wed, 01 Dec 2010 07:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-1793</guid>
		<description>к сожалению, этот пост писал не я, потому и помочь с таким делом не смогу...</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>к сожалению, этот пост писал не я, потому и помочь с таким делом не смогу&#8230;</p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: alarm</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-1782</link>
		<dc:creator>alarm</dc:creator>
		<pubDate>Tue, 30 Nov 2010 14:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-1782</guid>
		<description>Что-то у меня пропадают пробелы при кодировании из ютф8 в 1251, что при использовании iconv, что при использовании других функций. Причем исключительно когда парсится контент из рсс-ки своего твиттера, там есть какие-то подводные камни?</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Что-то у меня пропадают пробелы при кодировании из ютф8 в 1251, что при использовании iconv, что при использовании других функций. Причем исключительно когда парсится контент из рсс-ки своего твиттера, там есть какие-то подводные камни?</p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: proglammer</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-1469</link>
		<dc:creator>proglammer</dc:creator>
		<pubDate>Fri, 15 Oct 2010 07:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-1469</guid>
		<description>Что именно, дракончик?</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Что именно, дракончик?</p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: Dragon agr</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-1467</link>
		<dc:creator>Dragon agr</dc:creator>
		<pubDate>Thu, 14 Oct 2010 12:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-1467</guid>
		<description>Что-то не работает..:(</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Что-то не работает..:(</p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>By: Евгений</title>
		<link>http://php.infoniac.ru/utf-8_to_windows-1251.html/comment-page-1/#comment-1385</link>
		<dc:creator>Евгений</dc:creator>
		<pubDate>Tue, 07 Sep 2010 05:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://php.infoniac.ru/?p=31#comment-1385</guid>
		<description>Вот еще функция перекодировки из UTF-8 в CP1251. Вот рабочая версия. Проверял, нормально перекодирует.

function cp1251toutf8($text) {
		$text = str_replace(chr(208),chr(208).chr(160),$text); # Р
		$text = str_replace(chr(192),chr(208).chr(144),$text); # А
		$text = str_replace(chr(193),chr(208).chr(145),$text); # Б
		$text = str_replace(chr(194),chr(208).chr(146),$text); # В
		$text = str_replace(chr(195),chr(208).chr(147),$text); # Г
		$text = str_replace(chr(196),chr(208).chr(148),$text); # Д
		$text = str_replace(chr(197),chr(208).chr(149),$text); # Е
		$text = str_replace(chr(168),chr(208).chr(129),$text); # Ё
		$text = str_replace(chr(198),chr(208).chr(150),$text); # Ж
		$text = str_replace(chr(199),chr(208).chr(151),$text); # З
		$text = str_replace(chr(200),chr(208).chr(152),$text); # И
		$text = str_replace(chr(201),chr(208).chr(153),$text); # Й
		$text = str_replace(chr(202),chr(208).chr(154),$text); # К
		$text = str_replace(chr(203),chr(208).chr(155),$text); # Л
		$text = str_replace(chr(204),chr(208).chr(156),$text); # М
		$text = str_replace(chr(205),chr(208).chr(157),$text); # Н
		$text = str_replace(chr(206),chr(208).chr(158),$text); # О
		$text = str_replace(chr(207),chr(208).chr(159),$text); # П
		$text = str_replace(chr(209),chr(208).chr(161),$text); # С
		$text = str_replace(chr(210),chr(208).chr(162),$text); # Т
		$text = str_replace(chr(211),chr(208).chr(163),$text); # У
		$text = str_replace(chr(212),chr(208).chr(164),$text); # Ф
		$text = str_replace(chr(213),chr(208).chr(165),$text); # Х
		$text = str_replace(chr(214),chr(208).chr(166),$text); # Ц
		$text = str_replace(chr(215),chr(208).chr(167),$text); # Ч
		$text = str_replace(chr(216),chr(208).chr(168),$text); # Ш
		$text = str_replace(chr(217),chr(208).chr(169),$text); # Щ
		$text = str_replace(chr(218),chr(208).chr(170),$text); # Ъ
		$text = str_replace(chr(219),chr(208).chr(171),$text); # Ы
		$text = str_replace(chr(220),chr(208).chr(172),$text); # Ь
		$text = str_replace(chr(221),chr(208).chr(173),$text); # Э
		$text = str_replace(chr(222),chr(208).chr(174),$text); # Ю
		$text = str_replace(chr(223),chr(208).chr(175),$text); # Я
		$text = str_replace(chr(224),chr(208).chr(176),$text); # а
		$text = str_replace(chr(225),chr(208).chr(177),$text); # б
		$text = str_replace(chr(226),chr(208).chr(178),$text); # в
		$text = str_replace(chr(227),chr(208).chr(179),$text); # г
		$text = str_replace(chr(228),chr(208).chr(180),$text); # д
		$text = str_replace(chr(229),chr(208).chr(181),$text); # е
		$text = str_replace(chr(184),chr(209).chr(145),$text); # ё
		$text = str_replace(chr(230),chr(208).chr(182),$text); # ж
		$text = str_replace(chr(231),chr(208).chr(183),$text); # з
		$text = str_replace(chr(232),chr(208).chr(184),$text); # и
		$text = str_replace(chr(233),chr(208).chr(185),$text); # й
		$text = str_replace(chr(234),chr(208).chr(186),$text); # к
		$text = str_replace(chr(235),chr(208).chr(187),$text); # л
		$text = str_replace(chr(236),chr(208).chr(188),$text); # м
		$text = str_replace(chr(237),chr(208).chr(189),$text); # н
		$text = str_replace(chr(238),chr(208).chr(190),$text); # о
		$text = str_replace(chr(239),chr(208).chr(191),$text); # п
		$text = str_replace(chr(240),chr(209).chr(128),$text); # р
		$text = str_replace(chr(241),chr(209).chr(129),$text); # с
		$text = str_replace(chr(242),chr(209).chr(130),$text); # т
		$text = str_replace(chr(243),chr(209).chr(131),$text); # у
		$text = str_replace(chr(244),chr(209).chr(132),$text); # ф
		$text = str_replace(chr(245),chr(209).chr(133),$text); # х
		$text = str_replace(chr(246),chr(209).chr(134),$text); # ц
		$text = str_replace(chr(247),chr(209).chr(135),$text); # ч
		$text = str_replace(chr(248),chr(209).chr(136),$text); # ш
		$text = str_replace(chr(249),chr(209).chr(137),$text); # щ
		$text = str_replace(chr(250),chr(209).chr(138),$text); # ъ
		$text = str_replace(chr(251),chr(209).chr(139),$text); # ы
		$text = str_replace(chr(252),chr(209).chr(140),$text); # ь
		$text = str_replace(chr(253),chr(209).chr(141),$text); # э
		$text = str_replace(chr(254),chr(209).chr(142),$text); # ю
		$text = str_replace(chr(255),chr(209).chr(143),$text); # я	

		return $text;
	}</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Вот еще функция перекодировки из UTF-8 в CP1251. Вот рабочая версия. Проверял, нормально перекодирует.</p>
<p>function cp1251toutf8($text) {<br />
		$text = str_replace(chr(208),chr(208).chr(160),$text); # Р<br />
		$text = str_replace(chr(192),chr(208).chr(144),$text); # А<br />
		$text = str_replace(chr(193),chr(208).chr(145),$text); # Б<br />
		$text = str_replace(chr(194),chr(208).chr(146),$text); # В<br />
		$text = str_replace(chr(195),chr(208).chr(147),$text); # Г<br />
		$text = str_replace(chr(196),chr(208).chr(148),$text); # Д<br />
		$text = str_replace(chr(197),chr(208).chr(149),$text); # Е<br />
		$text = str_replace(chr(168),chr(208).chr(129),$text); # Ё<br />
		$text = str_replace(chr(198),chr(208).chr(150),$text); # Ж<br />
		$text = str_replace(chr(199),chr(208).chr(151),$text); # З<br />
		$text = str_replace(chr(200),chr(208).chr(152),$text); # И<br />
		$text = str_replace(chr(201),chr(208).chr(153),$text); # Й<br />
		$text = str_replace(chr(202),chr(208).chr(154),$text); # К<br />
		$text = str_replace(chr(203),chr(208).chr(155),$text); # Л<br />
		$text = str_replace(chr(204),chr(208).chr(156),$text); # М<br />
		$text = str_replace(chr(205),chr(208).chr(157),$text); # Н<br />
		$text = str_replace(chr(206),chr(208).chr(158),$text); # О<br />
		$text = str_replace(chr(207),chr(208).chr(159),$text); # П<br />
		$text = str_replace(chr(209),chr(208).chr(161),$text); # С<br />
		$text = str_replace(chr(210),chr(208).chr(162),$text); # Т<br />
		$text = str_replace(chr(211),chr(208).chr(163),$text); # У<br />
		$text = str_replace(chr(212),chr(208).chr(164),$text); # Ф<br />
		$text = str_replace(chr(213),chr(208).chr(165),$text); # Х<br />
		$text = str_replace(chr(214),chr(208).chr(166),$text); # Ц<br />
		$text = str_replace(chr(215),chr(208).chr(167),$text); # Ч<br />
		$text = str_replace(chr(216),chr(208).chr(168),$text); # Ш<br />
		$text = str_replace(chr(217),chr(208).chr(169),$text); # Щ<br />
		$text = str_replace(chr(218),chr(208).chr(170),$text); # Ъ<br />
		$text = str_replace(chr(219),chr(208).chr(171),$text); # Ы<br />
		$text = str_replace(chr(220),chr(208).chr(172),$text); # Ь<br />
		$text = str_replace(chr(221),chr(208).chr(173),$text); # Э<br />
		$text = str_replace(chr(222),chr(208).chr(174),$text); # Ю<br />
		$text = str_replace(chr(223),chr(208).chr(175),$text); # Я<br />
		$text = str_replace(chr(224),chr(208).chr(176),$text); # а<br />
		$text = str_replace(chr(225),chr(208).chr(177),$text); # б<br />
		$text = str_replace(chr(226),chr(208).chr(178),$text); # в<br />
		$text = str_replace(chr(227),chr(208).chr(179),$text); # г<br />
		$text = str_replace(chr(228),chr(208).chr(180),$text); # д<br />
		$text = str_replace(chr(229),chr(208).chr(181),$text); # е<br />
		$text = str_replace(chr(184),chr(209).chr(145),$text); # ё<br />
		$text = str_replace(chr(230),chr(208).chr(182),$text); # ж<br />
		$text = str_replace(chr(231),chr(208).chr(183),$text); # з<br />
		$text = str_replace(chr(232),chr(208).chr(184),$text); # и<br />
		$text = str_replace(chr(233),chr(208).chr(185),$text); # й<br />
		$text = str_replace(chr(234),chr(208).chr(186),$text); # к<br />
		$text = str_replace(chr(235),chr(208).chr(187),$text); # л<br />
		$text = str_replace(chr(236),chr(208).chr(188),$text); # м<br />
		$text = str_replace(chr(237),chr(208).chr(189),$text); # н<br />
		$text = str_replace(chr(238),chr(208).chr(190),$text); # о<br />
		$text = str_replace(chr(239),chr(208).chr(191),$text); # п<br />
		$text = str_replace(chr(240),chr(209).chr(128),$text); # р<br />
		$text = str_replace(chr(241),chr(209).chr(129),$text); # с<br />
		$text = str_replace(chr(242),chr(209).chr(130),$text); # т<br />
		$text = str_replace(chr(243),chr(209).chr(131),$text); # у<br />
		$text = str_replace(chr(244),chr(209).chr(132),$text); # ф<br />
		$text = str_replace(chr(245),chr(209).chr(133),$text); # х<br />
		$text = str_replace(chr(246),chr(209).chr(134),$text); # ц<br />
		$text = str_replace(chr(247),chr(209).chr(135),$text); # ч<br />
		$text = str_replace(chr(248),chr(209).chr(136),$text); # ш<br />
		$text = str_replace(chr(249),chr(209).chr(137),$text); # щ<br />
		$text = str_replace(chr(250),chr(209).chr(138),$text); # ъ<br />
		$text = str_replace(chr(251),chr(209).chr(139),$text); # ы<br />
		$text = str_replace(chr(252),chr(209).chr(140),$text); # ь<br />
		$text = str_replace(chr(253),chr(209).chr(141),$text); # э<br />
		$text = str_replace(chr(254),chr(209).chr(142),$text); # ю<br />
		$text = str_replace(chr(255),chr(209).chr(143),$text); # я	</p>
<p>		return $text;<br />
	}</p>
<!-- google_ad_section_end -->]]></content:encoded>
	</item>
</channel>
</rss>

