I changed to windows-1252 but it still does not work.However, i found the weirdest thing. I compiled the sample in release mode and run the application and it does work.After some investigation i found in the project propeties that if i set the character set to 'Use Unicode Character Set' rather than 'Use Multi-Byte Character Set' it works .Do u have any idea why that makes the difference.The problem is that i cannot change my project character set to unicode. I need it to stay as Multi-Byte.
Hmmm, maybe you're entering some
characters which have glyphs similar to those acceptable by HTML in your
system locale in your source code, which causes the HTML parser to fail to parse
the file correctly?
OK, here is an idea: make your application
use MBCS, but feed in Unicode strings as the HTML source code to the
WebBrowser control. You can use MultiByteToWideChar( ) to convert the
strings to UFT-8 (preferrably) or UTF-16, and then specify the utf-8 or
utf-16 charsets inside the <meta> tag.
---------
Ehsan Akhgari
List Owner: [EMAIL PROTECTED]
[Email: [EMAIL PROTECTED]; [EMAIL PROTECTED]]
[WWW: http://www.beginthread.com/Ehsan
]
| Physician, heal thyself: then you will also
heal your patient. Let it be his best cure to see with his eyes the man
who heals himself. -Thus Spoke Zarathustra, F. W. Nietzsche |
