SWT Browser somtimes displays the plain HTML sources [message #443837] |
Sat, 02 October 2004 21:00 |
Eclipse User |
|
|
|
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 #443930 is a reply to message #443910] |
Mon, 04 October 2004 16:29 |
Eclipse User |
|
|
|
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
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.01349 seconds