aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/javascript/reference/global_objects/string
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects/string')
-rw-r--r--files/fr/web/javascript/reference/global_objects/string/fromcharcode/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/string/fromcharcode/index.html b/files/fr/web/javascript/reference/global_objects/string/fromcharcode/index.html
index c1a6f56e6e..db155abb0d 100644
--- a/files/fr/web/javascript/reference/global_objects/string/fromcharcode/index.html
+++ b/files/fr/web/javascript/reference/global_objects/string/fromcharcode/index.html
@@ -43,10 +43,10 @@ original_slug: Web/JavaScript/Reference/Objets_globaux/String/fromCharCode
<p>Pour les caractères du plan multilingue de base, UTF-16 utilise une seule unité de code :</p>
<pre class="brush:js">String.fromCharCode(65,66,67); // ABC
-String.fromCharCode(0x2014); // "<span class="message-body-wrapper"><span class="message-flex-body"><span class="devtools-monospace message-body"><span class="objectBox objectBox-string">—"
+String.fromCharCode(0x2014); // "—"
String.fromCharCode(0x12014); // "—" également, le 1 a été tronqué
String.fromCharCode(8212); // renvoie également "—" car 8212
- // est la forme décimale</span></span></span></span>
+ // est la forme décimale
</pre>
<p>Les caractères hors de ce plan utilisent deux unités de code (on parle de <em>surrogate pair</em>) :</p>