mht ファイルの文字セットを変更したい。だから私は使ったihtmldocument2::put_charset
ファイルにメタ タグの文字セットがない場合、機能します。ファイルに Meta タグがある場合、put_charset は機能しません。
これが私のコードです。
LPDISPATCH lpDisp;
m_webBrowser->get_Document(&lpDisp);
lpDisp->QueryInterface(IID_IHTMLDocument2,(void**)&m_htmlDocument);
m_htmlDocument->put_charset(L"utf-8");
_variant_t rl=1L;
m_webBrowser->Refresh2(&rl);