简体   繁体   中英

How to read a special character from rtf file using C#?

I am using C# to convert RTF to XML.

When reading the rich text there are special character's that are represented by special RTF tags. Eg: the double quote symbol the rtf tag is \\'d3

When ever I read this symbol I need to write "&rdquo" in xml.

Is there any documentation that lists the RTF tags for all the special characters or is it possible to do some encoding to convert?

Check out the RTF Specification and read up on the Document Area .

The article has all the code values for the special characters (RTF Tags) list, eg:

\rdblquote  0xD3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM