473,466 Members | 1,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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??
Nov 16 '05 #1
1 5764
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?

"punkbot" wrote:
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??

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bill Kearns | last post by:
I need to call a VB6 public function from a html doc hyperlink which is diplayed using a webbrowser control. Anyone can point me in the right direction? thanks. -b
1
by: Luis Ferrao | last post by:
Hi, My Windows Forms application uses the WebBrowser control to open an Excel file since OLE objects are gone in .Net. The application is actualy a clone of the one found in the MS Knowledge...
0
by: Flip | last post by:
I would like to find out the height of a webpage in the WebBrowser control (.NET 2.0). Is there an easy C# API way to do this? The easiest way I have found with the UI, is to make the control...
0
by: J?rn | last post by:
Hi, I am searching for a sample code to resuse the webbrowser control inside a .NET application. My target is to take control over events initiated with the javascript call "window.external". ...
0
by: Daniel Siegl | last post by:
Hi I am having Issues with the new webbrowser control. I open a simple HTML page Like: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1
by: JP2006 | last post by:
I'm trying to write a control that will take a screen capture of a particular website when a user submits a form in a web application; one of the form fields is for a URL - the control needs to get...
3
by: Nordiek, Christof | last post by:
I have an applaction, that is an addin for Outlook. It opens a form with a WebBrowser control wich then shows a page from a Webserver. It works fine, but when I installed it on Windows Server 2003...
0
by: =?Utf-8?B?Q29kZVJhem9y?= | last post by:
Hi, Is it possible to access an htc file from the windows webbrowser control? I am receiving the following error: "An error has occurred in the script on this page." "Error: Access is denied...
0
by: scottietrek | last post by:
I have a webbrowser control that allows me to save username and password infromation for a proxy server and i have been successful in changing the system default proxy for my application. What i now...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.