<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; проблема с русским языком в mysql_fetch_array]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=1522&amp;type=atom" />
	<updated>2010-01-17T23:19:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=1522</id>
		<entry>
			<title type="html"><![CDATA[Re: проблема с русским языком в mysql_fetch_array]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=10291#p10291" />
			<content type="html"><![CDATA[<p>спасибо памагло</p>]]></content>
			<author>
				<name><![CDATA[leonid]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2495</uri>
			</author>
			<updated>2010-01-17T23:19:01Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=10291#p10291</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: проблема с русским языком в mysql_fetch_array]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=10288#p10288" />
			<content type="html"><![CDATA[<p><strong>leonid</strong><br />Необходимо установить кодировку соединения с MySQL. Сразу после функции mysql_connect добавьте строку:<br />mysql_query(&#039;SET NAMES cp1251&#039;);</p><p>Это в случае использования кодировки cp1251. Необходимо проверить соответствие: страница скрипта должна быть в ANSI; данные в БД должны иметь сравнение cp1251_general_ci.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2010-01-17T22:22:08Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=10288#p10288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[проблема с русским языком в mysql_fetch_array]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=10283#p10283" />
			<content type="html"><![CDATA[<p>Здравствуйте</p><p>Моя проблема заключается вот в чом phpMyAdmin</p><p>пример:</p><p> Таблица : danitosaiti </p><p>Поле&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Тип&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;Сравнение&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Атрибуты&nbsp; &nbsp; Ноль&nbsp; &nbsp; По умолчанию&nbsp; &nbsp; Дополнительно&nbsp; &nbsp; Действие<br />Index&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; int(11)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Нет&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;auto_increment&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>NazvanieS&nbsp; text&nbsp; &nbsp;&nbsp; &nbsp; cp1251_general_cs&nbsp; &nbsp; &nbsp; &nbsp; Да&nbsp; &nbsp; NULL&nbsp; &nbsp; </p><p>Тамнаходятся даные:</p><p>Index &nbsp; &nbsp; NazvanieS <br /> 1&nbsp; &nbsp;&nbsp; привет1<br /> 2 &nbsp; &nbsp;&nbsp; приые2<br /> 3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; привет3</p><p>но года я пишу скрипт :<br />&lt;?php<br />include &quot;cistem.php&quot;;</p><p>$ath = mysql_query(&quot;select * from&nbsp; danitosaiti ;&quot;);</p><p> while($author = mysql_fetch_array($ath))<br />&nbsp; {<br />&nbsp; &nbsp; printf (&quot;ID: %s&nbsp; Name: %s&quot;, $author[&#039;Index&#039;], $author[&#039;NazvanieS&#039;]);<br />&nbsp; &nbsp;}<br />?&gt;</p><p>получаю такои результат:</p><p>ID: 1 Name:??????? ID: 2 Name:??????? ID: 1 Name:??????? ID:3 Name:??????? </p><p>и чтобы я не делал как бы не менял кодировку все равно выдает вапросы подскажите вчом проблема ?</p>]]></content>
			<author>
				<name><![CDATA[leonid]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2495</uri>
			</author>
			<updated>2010-01-17T19:12:13Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=10283#p10283</id>
		</entry>
</feed>
