--- 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 & 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>