<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									L10N - general UTF-8 Russian fix [HOW-TO] - Non-English Support				            </title>
            <link>https://efiction.org/community/non-english-support/l10n-general-utf-8-russian-fix-how-to/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 19 Nov 2026 02:55:25 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>L10N - general UTF-8 Russian fix </title>
                        <link>https://efiction.org/community/non-english-support/l10n-general-utf-8-russian-fix-how-to/#post-3195</link>
                        <pubDate>Mon, 19 Mar 2012 14:47:03 +0000</pubDate>
                        <description><![CDATA[&#1050;&#1072;&#1082; &#1088;&#1072;&#1079; &#1080; &#1085;&#1072;&#1074;&#1089;&#1077;&#1075;&#1076;&#1072; &#1088;&#1077;&#1096;&#1080;&#1090;&#1100; &#1087;&#1088;&#1086;&#1073;&#1083;&amp;#1...]]></description>
                        <content:encoded><![CDATA[&#1050;&#1072;&#1082; &#1088;&#1072;&#1079; &#1080; &#1085;&#1072;&#1074;&#1089;&#1077;&#1075;&#1076;&#1072; &#1088;&#1077;&#1096;&#1080;&#1090;&#1100; &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1099; &#1089; &#1083;&#1086;&#1082;&#1072;&#1083;&#1080;&#1079;&#1072;&#1094;&#1080;&#1077;&#1081;.<br><br>&#1055;&#1077;&#1088;&#1077;&#1074;&#1086;&#1076;&#1080;&#1084; &#1074;&#1089;&#1102; &#1041;&#1044; &#1080; &#1074;&#1089;&#1077; &#1090;&#1072;&#1073;&#1083;&#1080;&#1094;&#1099; &#1041;&#1044; &#1074; <b>utf8_general_ci</b><br><pre><br>ALTER TABLE `table_name` CONVERT TO CHARACTER SET &#039;utf8&#039;;<br></pre><br>&#1054;&#1087;&#1088;&#1077;&#1076;&#1077;&#1083;&#1103;&#1077;&#1084; UTF-8 &#1074; &#1092;&#1091;&#1085;&#1082;&#1094;&#1080;&#1080; &#1087;&#1086;&#1076;&#1082;&#1083;&#1102;&#1095;&#1077;&#1085;&#1080;&#1103; &#1082; &#1041;&#1044;:<br><i><b>mysql_functions.php</b></i><br>&#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1101;&#1090;&#1086;:<br><pre>function dbconnect($dbhost, $dbuser, $dbpass, $dbname ) {<br>$mysql_access = mysql_connect($dbhost, $dbuser, $dbpass);<br>if(!$mysql_access) {<br>include(_BASEDIR.&quot;languages/en.php&quot;);<br>die(_FATALERROR.&quot; &quot;._NOTCONNECTED);<br>}<br>mysql_select_db($dbname, $mysql_access);<br>return $mysql_access;<br>}</pre><br>&#1053;&#1072; &#1101;&#1090;&#1086;:<br><pre>function dbconnect($dbhost, $dbuser, $dbpass, $dbname ) {<br>$mysql_access = mysql_connect($dbhost, $dbuser, $dbpass);<br>if(!$mysql_access) {<br>include(_BASEDIR.&quot;languages/en.php&quot;);<br>die(_FATALERROR.&quot; &quot;._NOTCONNECTED);<br>}<br>mysql_select_db($dbname, $mysql_access);<br>mysql_set_charset(&quot;utf8&quot;, $mysql_access);<br>return $mysql_access;<br>}</pre><br><br><i><b>mysqli_functions.php</b></i><br>&#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1101;&#1090;&#1086;:<br><pre>function dbconnect($dbhost, $dbuser, $dbpass, $dbname ) {<br>$mysql_access = new mysqli($dbhost, $dbuser, $dbpass, $dbname);<br>if(mysqli_connect_error()) {<br>include(_BASEDIR.&quot;languages/en.php&quot;); // Because we haven&#039;t got a language set yet.<br>die(_FATALERROR.&quot; &quot;._NOTCONNECTED);<br>}<br>return $mysql_access;<br>}</pre><br>&#1053;&#1072; &#1101;&#1090;&#1086;:<br><pre>function dbconnect($dbhost, $dbuser, $dbpass, $dbname ) {<br>$mysql_access = new mysqli($dbhost, $dbuser, $dbpass, $dbname);<br>if(mysqli_connect_error()) {<br>include(_BASEDIR.&quot;languages/en.php&quot;); // Because we haven&#039;t got a language set yet.<br>die(_FATALERROR.&quot; &quot;._NOTCONNECTED);<br>}<br>mysqli_set_charset($mysql_access, &quot;utf8&quot;);<br>return $mysql_access;<br>}</pre><br><br>&#1042; &#1092;&#1072;&#1081;&#1083;&#1077; &#1083;&#1086;&#1082;&#1072;&#1083;&#1080;&#1079;&#1072;&#1094;&#1080;&#1080; &#1087;&#1088;&#1086;&#1087;&#1080;&#1089;&#1099;&#1074;&#1072;&#1077;&#1084;:<br><pre>define (&quot;_CHARSET&quot;, &quot;utf-8&quot;);</pre><br><a class="go2wpf-bbcode" rel="nofollow" target="_blank" href="http://www.mediafire.com/?ajfd027d516nki4">&#1043;&#1086;&#1090;&#1086;&#1074;&#1099;&#1081; ru.php &#1076;&#1083;&#1103; eFiction 3.5.3</a><br>&#1042; &#1092;&#1072;&#1081;&#1083;&#1077; storyform.php (&#1089;&#1090;&#1088;&#1086;&#1082;&#1072; 48) &#1084;&#1077;&#1085;&#1103;&#1077;&#1084; htmlentities() &#1085;&#1072; htmlspecialchars()<br>&#1042; &#1092;&#1072;&#1081;&#1083;&#1077; javascript.js &#1084;&#1077;&#1085;&#1103;&#1077;&#1084; &#1074;&#1089;&#1077; &#1074;&#1099;&#1079;&#1086;&#1074;&#1099; unescape() &#1085;&#1072; decodeURI()<br><i><b>categorylist.php</b></i><br>&#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1101;&#1090;&#1086;:<br><pre>$find = array (&#039;&quot;&#039;, chr(150), chr(147), chr(148), chr(146));<br>$replace = array (&#039;&quot;&#039;, &quot;-&quot;, &quot;&quot;&quot;, &quot;&quot;&quot;, &quot;&#039;&quot;);</pre><br>&#1053;&#1072; &#1101;&#1090;&#1086;:<br><pre>$find = array (&#039; &#039;);<br>$replace = array (&#039;+&#039;);</pre><br><br><i><b>characterlist.php</b></i><br>&#1048;&#1079;&#1084;&#1077;&#1085;&#1080;&#1090;&#1100; &#1101;&#1090;&#1086;:<br><pre>//header(&quot;Content-Type: text/html; charset=&quot;.CHARSET,true);</pre><br>&#1053;&#1072; &#1101;&#1090;&#1086;:<br><pre>header(&quot;Content-Type: text/html; charset=&quot;._CHARSET,true);</pre><br><br>&#1040; &#1090;&#1072;&#1082;&#1078;&#1077; &#1101;&#1090;&#1086;:<br><pre>$find = array (&#039;&quot;&#039;, chr(150), chr(147), chr(148), chr(146));<br>$replace = array (&#039;&quot;&#039;, &quot;-&quot;, &quot;&quot;&quot;, &quot;&quot;&quot;, &quot;&#039;&quot;);</pre><br>&#1053;&#1072; &#1101;&#1090;&#1086;:<br><pre>$find = array (&#039; &#039;);<br>$replace = array (&#039;+&#039;);</pre><br><br><i><b>&#1056;&#1072;&#1079;&#1088;&#1077;&#1096;&#1072;&#1077;&#1084; &#1083;&#1086;&#1075;&#1080;&#1085;&#1099; &#1074; UTF-8 (&#1085;&#1080;&#1082;&#1080; &#1082;&#1080;&#1088;&#1080;&#1083;&#1083;&#1080;&#1094;&#1077;&#1081;):</b></i><br>&#1042; &#1092;&#1072;&#1081;&#1083;&#1072;&#1093;:<br><i><b>user/editbio.php<br>user/login.php</b></i><br>&#1052;&#1077;&#1085;&#1103;&#1077;&#1084; &#1074;&#1089;&#1077; &#1074;&#1093;&#1086;&#1078;&#1076;&#1077;&#1085;&#1080;&#1103; &#1101;&#1090;&#1086;&#1075;&#1086;:<br><pre>&quot;!^{3,30}$!i&quot;</pre><br>&#1053;&#1072; &#1101;&#1090;&#1086;:<br><pre>&quot;!^{3,30}$!iu&quot;</pre><br><br><i><b>&#1048;&#1089;&#1087;&#1088;&#1072;&#1074;&#1083;&#1103;&#1077;&#1084; &#1087;&#1086;&#1076;&#1089;&#1095;&#1105;&#1090; &#1089;&#1083;&#1086;&#1074;</b></i><br>&#1042; &#1092;&#1072;&#1081;&#1083;&#1077;:<br><i><b>stories.php</b></i><br>&#1052;&#1077;&#1085;&#1103;&#1077;&#1084; &#1074;&#1089;&#1077; &#1074;&#1093;&#1086;&#1078;&#1076;&#1077;&#1085;&#1080;&#1103; &#1101;&#1090;&#1086;&#1075;&#1086;:<br><pre>$pattern = &quot;/+/&quot;;</pre><br>&#1053;&#1072; &#1101;&#1090;&#1086;:<br><pre>$pattern = &quot;/+/iu&quot;;</pre><br>(&#1057;&#1090;&#1088;&#1086;&#1082;&#1072; 174 &#1080; 501)<br>&#1069;&#1090;&#1086; &#1088;&#1077;&#1096;&#1072;&#1077;&#1090; <b>&#1074;&#1089;&#1077;</b> &#1087;&#1088;&#1086;&#1073;&#1083;&#1077;&#1084;&#1099; &#1089; &#1083;&#1086;&#1082;&#1072;&#1083;&#1080;&#1079;&#1072;&#1094;&#1080;&#1077;&#1081;.<br><i>P.S. &#1040;&#1074;&#1090;&#1086;&#1088;, &#1074;&#1099;&#1087;&#1091;&#1089;&#1082;&#1072;&#1081; &#1072;&#1087;&#1076;&#1077;&#1081;&#1090;!</i>]]></content:encoded>
						                            <category domain="https://efiction.org/community/non-english-support/">Non-English Support</category>                        <dc:creator>guest11233</dc:creator>
                        <guid isPermaLink="true">https://efiction.org/community/non-english-support/l10n-general-utf-8-russian-fix-how-to/#post-3195</guid>
                    </item>
							        </channel>
        </rss>
		