Skip to content

Instantly share code, notes, and snippets.

@uekkie
Last active October 21, 2015 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uekkie/d72cad113933b7e41593 to your computer and use it in GitHub Desktop.
Save uekkie/d72cad113933b7e41593 to your computer and use it in GitHub Desktop.
SgmlParserのデコーダ置換フォールバックを指定する
public void Open(Entity parent, Uri baseUri)
{
// (snip...)
try
{
// e = Encoding.GetEncoding(charset);
e = Encoding.GetEncoding(charset, new EncoderReplacementFallback(""), new DecoderReplacementFallback(""));
}
catch (ArgumentException)
{
}
// (snip...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment