By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,655 Members | 1,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,655 IT Pros & Developers. It's quick & easy.

Problems with RTFTemplate and UTF-8 chars

P: 4
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.
Feb 3 '12 #1

✓ answered by sgilberta

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/

Share this Question
Share on Google+
2 Replies


P: 7
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/
Feb 3 '12 #2

P: 4
o gush, thanks for the tip
Feb 3 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.