Re: UTF-16 encoded HTML



On Wed, 31 Aug 2005 16:27:27 +0200, Stephan Zimmermann wrote:

> Thomas Fritsch wrote:
>
>> Does your HTML file have a line
>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-16">
>> in its header?
>
> Yes, it has (now) and it is also valid HTML (now), but the problem stays the
> same. Firefox or s.th. can disply it, while my JEditorPane only shows some
> rubbish.

According to this, Unicode was not included until HTML 4.0.
<http://www.w3.org/International/O-HTML-charset.html>

Since JEditorPane is stuck rendering HTML 3.2, it might mean
it does not, and will never, render Unicode correctly.

BTW -
> Email-To: s.zimmermann@xxxxxxxxxxxxxxxx

You seem to have either ignored my advice not to request
follow-ups by email, or you are not reading the group.

Good luck.

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"A simple prop to occupy my time.."
R.E.M. 'The One I Love'
.



Relevant Pages

  • Re: previous document in JEditorPane has lingering state, how to avoid that?
    ... I am using a JEditorPane to open plain text file and html file alternately. ... The "content type of this editor" referred to is determined by what you ...
    (comp.lang.java.programmer)
  • Re: chopping of string
    ... comments in HTML, as rendered by JEditorPane) ... of course the Java Glossary was in the top 5 hits, ... "This Page Is Valid HTML 4.01 Transitional!" ... how much/little screen space is devoted to it. ...
    (comp.lang.java.programmer)
  • Re: JLabels Are Big
    ... I agree with Daniel, 20 labels is not a lot. ... You might be able to subclass Image and then just draw the formula with Graphics2D operations, and then update in the usual way for Images. ... you might check out JEditorPane. ... It might be possible to compose your formula in HTML, ...
    (comp.lang.java.programmer)
  • Re: HyperlinkListener and < ahref="xy.html" target="framexy" >
    ... JEditorPane automatically installs an EditorKit based on the content-type ... I just tried displaying some FrameSets and it appears to work somewhat, ... errors when I tried to load the main J2SE JavaDocs. ... since I tried using a JEditorPane for serious HTML, ...
    (comp.lang.java.gui)
  • Re: Text in JTextArea als html darstellen ?
    ... Michael Hüttermann schrieb: ... Muss dazu eine Eigenschaft der JTextArea geändert werden? ... JEditorPane htmlDisplay = new JEditorPane; ... Es gibt aber AFAIK kommerzielle Komponenten, die HTML sauberer rendern ...
    (de.comp.lang.java)