Good time of day. Such a problem arose, in the database the text is stored in Russian, but when trying to output it, an error occurs with questions, instead of text, question marks. Page source:
<?php session_start(); include 'connect.php'; //Подключение к базе данных include 'config.php'; //Подключение к настройкам mysql_query('set names windows-1251',$db); ?> <!DOCTYPE html> <html lang='ru'> <head> <title><?php echo $title; ?></title> <meta charset='windows-1251'> <meta content='<?php echo $find; ?>' name='keywords'> <link type='text/css' rel='stylesheet' href='style.css'> <link rel='alternate' type='application/rss+xml' title='<?php echo $title; ?>' href='<?php echo $site; ?>/rss/rss.php'> <script type='text/javascript' src='scripts/jquery.js'></script> </head> <body> <?php $row = mysql_fetch_array(mysql_query("SELECT * FROM news WHERE id='1'")); echo $row['txt']; ?> </body> </html>
Please help me solve the problem.