#freeze
[[.NET]]
ああ、よくあるわよね。こういう時、どうすればいいのかしら?
ちょっとやってみたわ。
あ、ちなみに web1 というのが webBrowserの名前ね。
* 文字化けしたパターン [#oabc025f]
string source = web1.DocumentText;
* 判定を入れたパターン [#pfe7b4e5]
MemoryStream reader = (MemoryStream)web1.DocumentStream;
byte[] bytes = reader.ToArray();
string source = Encoding.GetEncoding(web1.Document.Encoding).GetString(bytes);
うん、これでUTF-8で無事に取り込めるようになったかな?