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));
> 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.