인코딩 API

실험적: 이 기능은 실험적인 기능입니다.
프로덕션 환경에서 사용하기 전에 브라우저 호환성 표를 주의 깊게 확인하세요.

인코딩 APIcharacter encodings, UTF-8이 아닌 레거시 인코딩을 포함한 다양한 문자열을 제어할 수 있는 매커니즘을 제공한다.

인코딩 API는 4가지 인터페이스를 제공한다. TextDecoder (en-US), TextEncoder (en-US), TextDecoderStream (en-US), TextEncoderStream (en-US) 등 이다.

Interfaces

Tutorials & tools

  • A shim allowing to use this interface in browsers that don't support it.
  • StringView – a C-like representation of strings based on typed arrays.

명세서

Specification
Encoding Standard
# interface-textdecoder
Encoding Standard
# interface-textencoder
Encoding Standard
# interface-textencoderstream
Encoding Standard
# interface-textdecoderstream

Browser compatibility

TextDecoder

api.TextDecoder

BCD tables only load in the browser

api.TextEncoder

BCD tables only load in the browser

api.TextEncoderStream

BCD tables only load in the browser

api.TextDecoderStream

BCD tables only load in the browser

TextEncoder

api.TextDecoder

BCD tables only load in the browser

api.TextEncoder

BCD tables only load in the browser

api.TextEncoderStream

BCD tables only load in the browser

api.TextDecoderStream

BCD tables only load in the browser