인코딩 API

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

인코딩 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