new StringDecoder([encoding])


  • encoding <string> StringDecoder 将使用的字符编码。默认为 'utf8'

创建一个新的 StringDecoder 实例。

  • encoding <string> The character encoding the StringDecoder will use. Default: 'utf8'.

Creates a new StringDecoder instance.