Windows1251Codec constructor

const Windows1251Codec({
  1. bool allowInvalid = false,
})

Instantiates a new Windows1251Codec.

If allowInvalid is true, the decode & encode methods and the converters returned by decoder & encoder will default to allowing invalid values. If allowing invalid values, the values will be decoded into the Unicode Replacement character (U+FFFD) and encoded into '?' character. If not, an exception will be thrown.

Implementation

const Windows1251Codec({this.allowInvalid = false});