svn: /phpdoc/ en/trunk/language/oop5/abstract.xml fr/trunk/reference/mysqli/mysqli/set-charset.xml fr/trunk/reference/mysqli/mysqli_result/fetch-fields.xml fr/trunk/reference/mysqlinfo/concepts.xml fr/trunk/reference/mysqlnd_ms/setup.xml

[email protected] (George Peter Banyard)
Newsgroups php.doc.fr,php.doc.cvs
Message-ID <[email protected]>
girgias                                  Tue, 15 Dec 2020 17:58:42 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=352099

Log:
Sync with EN

Changed paths:
    U   phpdoc/en/trunk/language/oop5/abstract.xml
    U   phpdoc/fr/trunk/reference/mysqli/mysqli/set-charset.xml
    U   phpdoc/fr/trunk/reference/mysqli/mysqli_result/fetch-fields.xml
    U   phpdoc/fr/trunk/reference/mysqlinfo/concepts.xml
    U   phpdoc/fr/trunk/reference/mysqlnd_ms/setup.xml

Modified: phpdoc/en/trunk/language/oop5/abstract.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/abstract.xml	2020-12-15 17:51:30 UTC (rev 352098)
+++ phpdoc/en/trunk/language/oop5/abstract.xml	2020-12-15 17:58:42 UTC (rev 352099)
@@ -1,3 +1,4 @@
+
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
  <sect1 xml:id="language.oop5.abstract" xmlns="http://docbook.org/ns/docbook">

Modified: phpdoc/fr/trunk/reference/mysqli/mysqli/set-charset.xml
===================================================================
--- phpdoc/fr/trunk/reference/mysqli/mysqli/set-charset.xml	2020-12-15 17:51:30 UTC (rev 352098)
+++ phpdoc/fr/trunk/reference/mysqli/mysqli/set-charset.xml	2020-12-15 17:58:42 UTC (rev 352099)
@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 350059 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 352075 Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->
-
 <refentry xml:id="mysqli.set-charset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
   <refname>mysqli::set_charset</refname>

Modified: phpdoc/fr/trunk/reference/mysqli/mysqli_result/fetch-fields.xml
===================================================================
--- phpdoc/fr/trunk/reference/mysqli/mysqli_result/fetch-fields.xml	2020-12-15 17:51:30 UTC (rev 352098)
+++ phpdoc/fr/trunk/reference/mysqli/mysqli_result/fetch-fields.xml	2020-12-15 17:58:42 UTC (rev 352099)
@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 350068 Maintainer: jpauli Status: ready -->
+<!-- EN-Revision: 352076 Maintainer: jpauli Status: ready -->
 <!-- Reviewed: no -->
-
 <refentry xml:id="mysqli-result.fetch-fields" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>mysqli_result::fetch_fields</refname>
@@ -83,8 +82,8 @@
        La largeur du champ, en octets, telle que spécifiée dans la définition de la table.
        Notez que ce nombre (octets) peut différer de la valeur de votre définition de
        table (caractères), en fonction du jeu de caractères que vous utilisez.
-       Par exemple, le jeu de caractères utf8 contient 3 octets par caractère, donc
-       varchar(10) renverra une longueur de 30 pour utf8 (10*3), mais 10 pour latin1 (10*1).
+       Par exemple, le jeu de caractères utf8 contient au plus 3 octets par caractère, donc
+       varchar(10) renverra une longueur d'au plus 30 pour utf8 (10*3), mais 10 pour latin1 (10*1).
       </entry>
      </row>
      <row>

Modified: phpdoc/fr/trunk/reference/mysqlinfo/concepts.xml
===================================================================
--- phpdoc/fr/trunk/reference/mysqlinfo/concepts.xml	2020-12-15 17:51:30 UTC (rev 352098)
+++ phpdoc/fr/trunk/reference/mysqlinfo/concepts.xml	2020-12-15 17:58:42 UTC (rev 352099)
@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 338913 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 352075 Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->
-
 <chapter xml:id="mysqlinfo.concepts" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title>Concepts</title>
  <para>
@@ -164,16 +163,16 @@
 $mysqli = new mysqli("localhost", "my_user", "my_password", "world");

 // N'affectera PAS $mysqli->real_escape_string();
-$mysqli->query("SET NAMES utf8");
+$mysqli->query("SET NAMES utf8mb4");

 // N'affectera PAS $mysqli->real_escape_string();
-$mysqli->query("SET CHARACTER SET utf8");
+$mysqli->query("SET CHARACTER SET utf8mb4");

 // Mais, ceci affectera $mysqli->real_escape_string();
-$mysqli->set_charset('utf8');
+$mysqli->set_charset('utf8mb4');

-// Mais, ceci NE l'affectera PAS (utf-8 par rapport à utf8) -- n'utilisez pas les tirets ici
-$mysqli->set_charset('utf-8');
+// Mais, ceci NE l'affectera PAS (UTF-8 par rapport à utf8mb4) -- n'utilisez pas les tirets ici
+$mysqli->set_charset('UTF-8');

 ?>
 ]]>
@@ -188,10 +187,10 @@
   <note>
    <title>Confusion possible avec UTF-8</title>
    <para>
-    Du au fait que les noms des jeux de charactères dans MySQL ne contiennent pas de tiret,
-    la chaîne "utf8" est correcte dans MySQL et définira le jeu de charactère en UTF-8.
-    La chaîne "utf-8" n'est pas correcte, et utiliser "utf-8" échouera à modifier le
-    jeu de charactère.
+    Du au fait que les noms des jeux de caractères dans MySQL ne contiennent pas de tiret,
+    la chaîne "utf8" est correcte dans MySQL et définira le jeu de caractère en UTF-8.
+    La chaîne "UTF-8" n'est pas correcte, et utiliser "utf-8" échouera à modifier le
+    jeu de caractère.
    </para>
   </note>

@@ -202,14 +201,14 @@
 <?php
 $mysqli = new mysqli("localhost", "my_user", "my_password", "world");

-printf("Jeu de charactère initial : %s\n", $mysqli->character_set_name());
+printf("Jeu de caractère initial : %s\n", $mysqli->character_set_name());

-if (!$mysqli->set_charset('utf8')) {
-    printf("Erreur lors du chargement du jeu de caractères utf8 : %s\n", $mysqli->error);
+if (!$mysqli->set_charset('utf8mb4')) {
+    printf("Erreur lors du chargement du jeu de caractères utf8mb4 : %s\n", $mysqli->error);
     exit;
 }

-echo "Nouvelle information du jeu de charactère :\n";
+echo "Nouvelle information du jeu de caractère :\n";
 print_r( $mysqli->get_charset() );

 ?>
@@ -225,7 +224,7 @@
    <programlisting role="php">
 <![CDATA[
 <?php
-$pdo = new PDO("mysql:host=localhost;dbname=world;charset=utf8", 'my_user', 'my_pass');
+$pdo = new PDO("mysql:host=localhost;dbname=world;charset=utf8mb4", 'my_user', 'my_pass');
 ?>
 ]]>
    </programlisting>
@@ -239,9 +238,9 @@
 $conn = mysql_connect("localhost", "my_user", "my_pass");
 $db   = mysql_select_db("world");

-echo 'Jeu de charactère initial : ' .  mysql_client_encoding($conn) . "\n";
+echo 'Jeu de caractère initial : ' .  mysql_client_encoding($conn) . "\n";

-if (!mysql_set_charset('utf8', $conn)) {
+if (!mysql_set_charset('utf8mb4', $conn)) {
     echo "Erreur : Impossible de définir le jeu de caractères.\n";
     exit;
 }

Modified: phpdoc/fr/trunk/reference/mysqlnd_ms/setup.xml
===================================================================
--- phpdoc/fr/trunk/reference/mysqlnd_ms/setup.xml	2020-12-15 17:51:30 UTC (rev 352098)
+++ phpdoc/fr/trunk/reference/mysqlnd_ms/setup.xml	2020-12-15 17:58:42 UTC (rev 352099)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 347753 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 352075 Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->

 <chapter xml:id="mysqlnd-ms.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -2445,7 +2445,7 @@
             }
         },
         "lazy_connections": 1,
-        "server_charset" : "utf8"
+        "server_charset" : "utf8mb4"
     }
 }
 ]]>
@@ -2454,10 +2454,10 @@
 <![CDATA[
 <?php
 $mysqli = new mysqli("myapp", "username", "password", "database");
-$mysqli->real_escape("this will be escaped using the server_charset setting - utf8");
+$mysqli->real_escape("this will be escaped using the server_charset setting - utf8mb4");
 $mysqli->set_charset("latin1");
 $mysqli->real_escape("this will be escaped using latin1");
-/* server_charset définit implicitement une connexion utf8 */
+/* server_charset définit implicitement une connexion utf8mb4 */
 $mysqli->query("SELECT 'This connection will be set to server_charset upon establishing' AS _msg FROM DUAL");
 /* latin1 sera maintenant utilisé */
 $mysqli->set_charset("latin1");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.