Ehsan,Thanks for the quick reply.I tried using a different approach to writing the html content into the webbrowser. (find code below).This seems to work fine. From this i conclude that the problem was not the MultiByteToWideChar that caused the problem, rather, the use of IPersistStreamInit.Do you see any way that the use of the stream can change the encoding of the string?
I don't know of any,
but your code does not seem reliable to me at all. You can try the UTF-8
solution I've already shown; as this is the one solution that I'm certain that
will work. Also, you are making some mistakes regarding the Unicode
conversion stuff, you may want to see my
article:
---------
Ehsan Akhgari
List Owner: [EMAIL PROTECTED]
[Email: [EMAIL PROTECTED]]
[WWW: http://www.beginthread.com/Ehsan
]
| He who sees the abyss, but with eagle's eyes
- he who with eagle's talons grasps the abyss: he has courage. -Thus Spoke Zarathustra, F. W. Nietzsche |
