Currently, EnvChangeTokenHandler.CharsetMap is a dictionary of string -> Encoding.
If Encoding.GetEncoding cannot locate the specified encoding scheme (regardless of if it will be used), then construction of the dictionary fails, preventing driver usage.
To allow for more obscure character encodings to be added without breaking existing function, this dictionary should change to string -> Func<Encoding>
Currently,
EnvChangeTokenHandler.CharsetMap
is a dictionary ofstring
->Encoding
.If Encoding.GetEncoding cannot locate the specified encoding scheme (regardless of if it will be used), then construction of the dictionary fails, preventing driver usage.
To allow for more obscure character encodings to be added without breaking existing function, this dictionary should change to
string
->Func<Encoding>