Skip to content

Commit 45dbad8

Browse files
[문서] 02-text-decoder 번역 충돌 해결
1 parent fc981f4 commit 45dbad8

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

4-binary/02-text-decoder/article.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,17 @@
22

33
이진 데이터가 문자열이라면 어떨지 생각해봅시다. 예를 들어 텍스트 데이터가 있는 파일을 받았다고 가정하겠습니다.
44

5-
<<<<<<< HEAD
6-
내장 객체, [TextDecoder](https://encoding.spec.whatwg.org/#interface-textdecoder)는 주어진 버퍼와 인코딩으로 값을 실제 자바스크립트 문자열로 읽을 수 있게 해줍니다.
7-
=======
8-
The built-in [TextDecoder](https://encoding.spec.whatwg.org/#interface-textdecoder) object allows one to read the value into an actual JavaScript string, given the buffer and the encoding.
9-
>>>>>>> upstream/master
5+
내장 객체인 [TextDecoder](https://encoding.spec.whatwg.org/#interface-textdecoder)는 주어진 버퍼와 인코딩으로 값을 실제 자바스크립트 문자열로 읽을 수 있게 해줍니다.
106

117
첫 번째로 객체를 생성합니다.
128
```js
139
let decoder = new TextDecoder([label], [options]);
1410
```
1511

16-
<<<<<<< HEAD
1712
- **`label`** -- 기본적인 인코딩 방식은 `utf-8`이지만 `big5`, `windows-1251` 및 다른 인코딩 방식도 지원됩니다.
1813
- **`options`** -- 선택 항목입니다.
1914
- **`fatal`** -- 불린 값. `true`인 경우, 잘못된 글자(디코딩 불가능한 글자)를 대상으로 예외를 던집니다. `false(기본값)`인 경우, 글자를 `\uFFFD`로 대체합니다.
20-
- **`ignoreBOM`** -- 불린 값이 `true`인 경우 사용되지 않는 바이트 순서 표식(Byte Order Mark, BOM)을 무시합니다.
21-
=======
22-
- **`label`** -- the encoding, `utf-8` by default, but `big5`, `windows-1251` and many other are also supported.
23-
- **`options`** -- optional object:
24-
- **`fatal`** -- boolean, if `true` then throw an exception for invalid (non-decodable) characters, otherwise (default) replace them with character `\uFFFD`.
25-
- **`ignoreBOM`** -- boolean, if `true` then ignore BOM (an optional byte-order Unicode mark), rarely needed.
26-
>>>>>>> upstream/master
15+
- **`ignoreBOM`** -- 불린 값이 `true`인 경우 선택적인 바이트 순서 유니코드 표식(an optional byte-order Unicode mark, BOM)을 무시합니다. 이 옵션은 거의 필요하지 않습니다.
2716

2817
그런 다음 생성했던 객체를 디코딩합니다.
2918

0 commit comments

Comments
 (0)