1

in My case,when i retrieve string of different language from database and add it to paragraph of itext.it is not displayed properly. it is displayed as::

???????????

code as ::

Paragraph quetion_cell_paragraph= new Paragraph(100);
    String itemtext = new  String(multipleChoiceSingleCorrect.getItemText().getBytes(),"UTF-8");
                            quetion_cell_paragraph.add(itemtext);

please let me know the solution.

Avyaan
  • 1,285
  • 6
  • 20
  • 47
  • Check http://stackoverflow.com/a/18286026/2398886 – Tarsem Singh Sep 18 '13 at 11:52
  • 1
    Are you sure the characters in question are supported by the font you use? Your code does not reflect any font setting at all, but the standard fonts are not overly complete concerning foreign characters. – mkl Sep 18 '13 at 15:30

1 Answers1

0

try adjusting Windows -> Preferences -> General -> Workspace (bottom left) // Text file encoding, chose Other, UTF-8.

  • Neither java nor iText inherently have a menu structure. The OP did not specify a special IDE or other GUI. So why are you trying to direct the OP to find some menu item? – mkl May 24 '15 at 19:10