How to convert UTF-8 string to RTF string in java?
Asked Answered
S

2

6

Currently my project need export report to MS Word , and i choose using RTFTemplate engine to do it. But my problem is I need convert all character to RTF string first . Everyone have experiment with this problem can suggest me ?

Sumbawa answered 22/8, 2010 at 3:48 Comment(2)
RTFTemplate can be found at rtftemplate.sourceforge.netAltis
Maybe helpful: https://mcmap.net/q/412437/-how-to-output-unicode-string-to-rtf-using-cAltis
S
2

Yes.
You can use RtfDocument from iText:
new RtfDocument().filterSpecialChar(baos, sentence, true, true);

Seminary answered 23/12, 2010 at 10:42 Comment(0)
M
-1

POI

is an apache project that help works with MS Office format.

Mcvay answered 22/8, 2010 at 4:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.