Problems with RTFTemplate and UTF-8 chars

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • voo8
    New Member
    • Dec 2011
    • 4

    Problems with RTFTemplate and UTF-8 chars

    Hi,

    I have a solution based on RTFTemplate for generating RTF documents based containing UTF-8 strings from my Java model.

    But as far as I have tried, RTFTemplate does not seem to support UTF-8.

    Any idea or previous experience?

    Thanks in advance.
  • sgilberta
    New Member
    • Jul 2009
    • 7

    #2
    I have used as well RTFTemplate in the past.
    A solution would be to write an adapter that prepares your content to be merged with the template and, in this adapter, you will need to encode your chars. Encode to Unicode will not help, you need specific rtf encoding. You may use for example itext-rtf. See for example more details at http://www.zetucu.ro/rtf-character-encoding/

    Comment

    • voo8
      New Member
      • Dec 2011
      • 4

      #3
      o gush, thanks for the tip

      Comment

      Working...