aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/document/characterset/index.html
blob: 647c25ab41d40a6c970a17b20bc23827ebe01cc7 (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
---
title: Document.characterSet
slug: Web/API/Document/characterSet
tags:
  - API
  - DOM
  - Document
  - Property
  - Reference
translation_of: Web/API/Document/characterSet
---
<div>{{ ApiRef("DOM") }}</div>

<p><code><strong>Document.characterSet</strong></code> 읽기 전용 속성은 현재 문서가 렌더링에 사용하는 <a href="/en-US/docs/Glossary/character_encoding">문자 인코딩</a>을 반환합니다.</p>

<div class="note">
<p><strong>참고:</strong> <code>Document.charset</code><code>Document.inputEncoding</code> 속성은 <code>Document.characterSet</code>의 이전 별칭입니다. 더 이상 사용지 마세요.</p>
</div>

<h2 id="예제">예제</h2>

<pre class="brush: html">&lt;button onclick="console.log(document.characterSet);"&gt;
  콘솔에 인코딩 출력
&lt;/button&gt;
&lt;!-- "ISO-8859-1"이나 "UTF-8" 등, 문서의 캐릭터 셋 기록 --&gt;
</pre>

<h2 id="명세">명세</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th>Specification</th>
   <th>Status</th>
   <th>Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('DOM WHATWG', '#dom-document-characterset', 'characterSet')}}</td>
   <td>{{Spec2('DOM WHATWG')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="브라우저_호환성">브라우저 호환성</h2>

<p>{{Compat("api.Document.characterSet")}}</p>