Can't display Persian text in JEditorPane

Hi I created html pages with Persian and English text. It displays Persian characters with no problem, however when i get the local html file to display in JEditorPane the Persian chracters appear as ?can any one help?
[239 byte] By [Milad_UKa] at [2007-11-26 17:58:07]
# 1
The font you are using doesn't have glyphs to represent the characters you are trying to display.
macrules2a at 2007-7-9 5:11:19 > top of Java-index,Java Essentials,New To Java...
# 2

I installed the persian font and thats how i get the html file

ep = new JEditorPane();

ep.setEditable(false);

ep.setFont(new java.awt.Font("BCompaBd",java.awt.Font.PLAIN,18));

ep.setContentType("text/rtf");

URL url = PersianTutor.class.getResource("Copyright.html");

try {

ep.setPage(url);

}

catch (IOException e) {

e.printStackTrace();

}

JScrollPane jp = new JScrollPane(ep);

jp.setPreferredSize(new Dimension (500, 500));

ep.addHyperlinkListener(new Link(ep));

Milad_UKa at 2007-7-9 5:11:19 > top of Java-index,Java Essentials,New To Java...
# 3

> The font you are using doesn't have glyphs to

> represent the characters you are trying to display.

No, that would display rectangular boxes. The questions marks indicate that the file is being read by a Reader with an encoding that doesn't match the real encoding of the file.

DrClapa at 2007-7-9 5:11:19 > top of Java-index,Java Essentials,New To Java...
# 4
Now i get rectangular boxes instead of ?Please help
Milad_UKa at 2007-7-9 5:11:19 > top of Java-index,Java Essentials,New To Java...
# 5
> Now i get rectangular boxes instead of ?> > Please helpOk, now read reply 1 again - as Dr. Clap pointed out I was premature with my advice ;)
macrules2a at 2007-7-9 5:11:19 > top of Java-index,Java Essentials,New To Java...