aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/encoding_api/index.html
blob: 033556ff1f27701adf4dec001efd6351719bf5f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: 인코딩 API
slug: Web/API/Encoding_API
tags:
  - API
  - 개요
  - 레퍼런스
  - 인코딩
translation_of: Web/API/Encoding_API
---
<p>{{DefaultAPISidebar("Encoding API")}}{{SeeCompatTable}}</p>

<p><strong>인코딩 API</strong>{{Glossary("문자 인코딩", "character encodings")}}, {{Glossary("UTF-8")}}이 아닌 레거시 인코딩을 포함한 다양한 문자열을 제어할 수 있는 매커니즘을 제공한다.</p>

<p>인코딩 API는 4가지 인터페이스를 제공한다. {{domxref("TextDecoder")}}, {{domxref("TextEncoder")}}{{domxref("TextDecoderStream")}}, {{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="Tutorials_tools">Tutorials &amp; tools</h2>

<ul>
 <li>A <a href="http://code.google.com/p/stringencoding/">shim</a> allowing to use this interface in browsers that don't support it.</li>
 <li><a href="/en-US/Add-ons/Code_snippets/StringView" title="/en-US/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code></a> – a C-like representation of strings based on typed arrays.</li>
</ul>

<h2 id="Specifications">Specifications</h2>

<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>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</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>