globalsTextEncoder()Version: 1.3.0On this pageTextEncoder()The TextEncoder() constructor returns a newly created TextEncoder object that will generate a byte stream with UTF-8 encoding.Syntaxnew TextEncoder()ParametersNone.