I have the html markup with unicode symbol:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META content="text/html; charset=windows-1251" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16441"></HEAD>
<BODY>
<P>ψ</P></BODY></HTML>
The symbol ψ I insert using IHTMLTxtRange.pasteHTML. And when I use HTMLDocument2.body.innerHTML, I want to get <P>ψ</P>, but instead of the string representation of a Unicode character string function return Unicode BSTR
where ψ(ψ) is a Unicode character $03C8
Another workaround
However, this method only works with ANSI encoding html document. If the Unicode encoding you need to do an additional conversion from Unicode to AnsiString: