diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-br/web/api/encoding_api | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/pt-br/web/api/encoding_api')
-rw-r--r-- | files/pt-br/web/api/encoding_api/index.html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/files/pt-br/web/api/encoding_api/index.html b/files/pt-br/web/api/encoding_api/index.html new file mode 100644 index 0000000000..543a842cdc --- /dev/null +++ b/files/pt-br/web/api/encoding_api/index.html @@ -0,0 +1,55 @@ +--- +title: Encoding API +slug: Web/API/Encoding_API +translation_of: Web/API/Encoding_API +--- +<p>{{DefaultAPISidebar("Encoding API")}}{{SeeCompatTable}}</p> + +<p>O <strong>Encoding API</strong> providência uma mecânismo para tratar textos em vários tipos de {{Glossary("character encoding", "encode de caracteres")}}, incluindo encodes legados non-{{Glossary("UTF-8")}}</p> + +<p>A API provém de quatro interfaces: {{domxref("TextDecoder")}}, {{domxref("TextEncoder")}}, {{domxref("TextDecoderStream")}} e {{domxref("TextEncoderStream")}}.</p> + +<h2 id="Interfaces">Interfaces</h2> + +<div class="index"> +<ul> + <li>{{DOMxRef("TextDecoder")}}</li> + <li>{{DOMxRef("TextEncoder")}}</li> + <li>{{DOMxRef("TextDecoderStream")}}</li> + <li>{{DOMxRef("TextEncoderStream")}}</li> +</ul> +</div> + +<h2 id="Tutoriais_ferramentas">Tutoriais & ferramentas</h2> + +<ul> + <li>O <a href="http://code.google.com/p/stringencoding/" title="http://code.google.com/p/stringencoding/">shim</a> permite usar essa interface em navegadores que não a suportam.</li> + <li><a href="/en-US/Add-ons/Code_snippets/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code></a> – Um C-like reperesentação de strings baseados em arrays tipados</li> +</ul> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName("Encoding")}}</td> + <td>{{Spec2("Encoding")}}</td> + <td>Definição inicial.</td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilidade_dos_navegadores">Compatibilidade dos navegadores</h2> + + + +<h3 id="TextDecoder"><code>TextDecoder</code></h3> + +<p>{{Compat("api.TextDecoder")}}</p> + +<h3 id="TextEncoder"><code>TextEncoder</code></h3> + +<p>{{Compat("api.TextEncoder")}}</p> |