WebBrowser Control (and IE) don't show utf-8 html file (firefox do

G

Guest

My application is processing a bunch of english and japanese data, composing
some XML (utf-16) then transforming it (XsltCommand) (utf-8) to create some
HTML. I am redirecting the output into a WebBrowser control. Nothing shows
up. But if I "View Source" I see my data 100% correct. Likewise, if I
store this stream to disk (again utf-8) IE 6 acts the same way, showing an
empty page. Firefox opens the HTML file just fine though.

Checking WebBrowser.Document.CharSet shows "Auto Detect" ...

What is IE's problem??
 
G

Guest

A quick update:

(1) adding the byte order marker to the front of the string doesn't help
(2) ensuring utf-16 all the way through doesn't help either.

If I feed the utf-16 XML (before transform) to the browser I can see the
data, could XsltCommand be doing something bad?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top