Note: This feature is available in Web Workers.
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
It always has the value utf-8.
A string with the value utf-8.
TextEncoder interface it belongs to.