svn: /phpdoc/ru/trunk/reference/mysql/functions/ mysql-client-encoding.xml
| From: | Shein Alexey | Date: | Fri, 27 May 2011 08:30:32 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/mysql/functions/ mysql-client-encoding.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-1796@lists.php.net to get a copy of this message | ||
shein Fri, 27 May 2011 08:30:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311475
Log:
Updated translation.
Changed paths:
U phpdoc/ru/trunk/reference/mysql/functions/mysql-client-encoding.xml
Modified: phpdoc/ru/trunk/reference/mysql/functions/mysql-client-encoding.xml
===================================================================
--- phpdoc/ru/trunk/reference/mysql/functions/mysql-client-encoding.xml 2011-05-27 08:27:08 UTC (rev
311474)
+++ phpdoc/ru/trunk/reference/mysql/functions/mysql-client-encoding.xml 2011-05-27 08:30:32 UTC (rev
311475)
@@ -1,51 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 297028 Maintainer: shein Status: ready -->
+<!-- Reviewed: no -->
<!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: lovchy Status: ready -->
-<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.100 -->
- <refentry xml:id="function.mysql-client-encoding" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>mysql_client_encoding</refname>
- <refpurpose>Возвращает кодировку
соединения</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Описание</title>
- <methodsynopsis>
- <type>string</type><methodname>mysql_client_encoding</methodname>
- <methodparam
choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>mysql_client_encoding</function> возвращает название
кодировки,
- с которой работет текущее соединения.
- </para>
- <para>
- <example>
- <title>Пример использования
<function>mysql_client_encoding</function></title>
- <programlisting role="php">
+<refentry xml:id="function.mysql-client-encoding" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>mysql_client_encoding</refname>
+ <refpurpose>Возвращает кодировку соединения</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>string</type><methodname>mysql_client_encoding</methodname>
+ <methodparam
choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Возвращает значение переменной MySQL
<literal>character_set</literal>.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &mysql.linkid.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Возвращает используемую по умолчанию кодировку для
данного
+ соединения.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Пример использования
<function>mysql_client_encoding</function></title>
+ <programlisting role="php">
<![CDATA[
<?php
-$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
+$link = mysql_connect('localhost', 'mysql_user',
'mysql_password');
$charset = mysql_client_encoding($link);
-printf ("current character set is %s\n", $charset);
+
+echo "Текущая кодировка: $charset\n";
?>
]]>
- </programlisting>
- <para>
- Вышеописанный пример выдаст следующий результат:
- </para>
- <screen>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
<![CDATA[
-current character set is latin1
+Текущая кодировка: latin1
]]>
- </screen>
- </example>
- </para>
- <para>
- Cм. таже
- <function>mysql_real_escape_string</function>
- </para>
- </refsect1>
- </refentry>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>mysql_set_charset</function></member>
+ <member><function>mysql_real_escape_string</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
@@ -57,7 +83,7 @@
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
-sgml-default-dtd-file:"../~/.phpdoc/manual.ced"
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil