new StringDecoder([encoding])


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

创建新的 StringDecoder 实例。

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

Creates a new StringDecoder instance.