striprtf(file, verbose = FALSE, ...)
rtf2text(text, verbose = FALSE)readLinesAn advance from the preceding implementation is that the function
accomodates with various ANSI code pages. For example, RTF files created
by Japanese version of Microsoft Word marks \ansicpg932, which indicates
the code page 932 is used for letter-code conversion.
The function detect the code page indication and
convert them to UTF-8 as possible. Conversion table is retrieved from
here (http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/).
striprtf(system.file("extdata/king.rtf", package = "striprtf"))
Run the code above in your browser using DataLab