IBM Content Manager, Version 8.5           

Java viewer: UTF-8 and UTF-16 plain text documents always appear left-aligned

All UTF plain text documents are left-aligned in Java™ viewer. To display the documents that are in Arabic or Hebrew that are right-aligned, use Arabic or Hebrew encoding instead of UTF-8 encoding.

Symptoms

The Java viewer supports viewing of UTF-8 and UTF-16 plain text documents. But these documents will always be left-aligned, even if the entire text of the document is in a language that is right-aligned, such as Arabic and Hebrew.

Resolving the problem

You can work around the problem by using one of the following options:
  • Use Hebrew or Arabic encoding instead of UTF-8 for documents that you know are in Hebrew or Arabic.
  • Use bidirectional marks within the UTF-8 document to point out the lines that should be read from right to left. Note that with this approach the line will still be left-aligned, but it will be read from right to left.


Feedback

Last updated: December 2013
dcmpt011.htm

© Copyright IBM Corporation 2013.