Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser somtimes displays the plain HTML sources
SWT Browser somtimes displays the plain HTML sources [message #443837] Sat, 02 October 2004 21:00 Go to next message
Eclipse UserFriend
Originally posted by: H.Drewes.web.de

Hello everone,

i'm just working on a little Java/SWT program for my university to
manage bibliographic data. I'm using the SWT browser to display the data
within the application. Unforunately, the browser widget sometimes
doesn't interpret the HTML but displays just the plain text sources.

First I thought this behaviour would come along with the length of the
html files / strings, but that doesn't seeme to give an explanation. My
second idea was about special characters in the HTML sources, but I
deleted and inserted again several parts of the sources with different
"problematic" characters (',", ..) and I got no systematic view on what
could be wrong with this either.

Any ideas? Or is this just a bug in SWT? If it is one, do you know, how
to get around it?

thanks for your help,
Holger
Re: SWT Browser somtimes displays the plain HTML sources [message #443910 is a reply to message #443837] Mon, 04 October 2004 14:28 Go to previous messageGo to next message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
Hi Holger,

Please paste a little example of what your code does. A random guess: do you
use Browser.setText(String) and do you define the meta charset tag in the
html you are passing in? Meta charset tag must not be set when calling
Browser.setText since the content is Unicode anyway like any java String.

Chris
Re: SWT Browser somtimes displays the plain HTML sources [message #443930 is a reply to message #443910] Mon, 04 October 2004 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: H.Drewes.web.de

Hello Chris,
the meta charset tag in the html source was exactly the problem, thanks
a lot for your help! :-)

Holger


Christophe Cornu wrote:
> Hi Holger,
>
> Please paste a little example of what your code does. A random guess: do you
> use Browser.setText(String) and do you define the meta charset tag in the
> html you are passing in? Meta charset tag must not be set when calling
> Browser.setText since the content is Unicode anyway like any java String.
>
> Chris
>
>
Re: SWT Browser somtimes displays the plain HTML sources [message #444045 is a reply to message #443930] Tue, 05 October 2004 15:01 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
Hello Holger,

The javadoc has been updated to clarify this point.

Cheers,

Chris
Previous Topic:[Mac] TableColumn selection event not fired?
Next Topic:How to call a form??
Goto Forum:
  


Current Time: Thu Apr 18 07:12:33 GMT 2024

Powered by FUDForum. Page generated in 0.01349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top