im puzzeling this for a while and yet did not found any solution that might work for me on the net.
Im having a given RTF File (from outlook 2010) that contains (as seen from windows Apps like Outlook or Word) several special keyWords all over the document which i would like to replace or "substitute" with my own content. so i like a rtf template file and take that to make a copy it it with the keyWords replaced.
the rtf files are "cp1252" encoded if i am right.
the "keywords" that are supposed to be replaced within the rtf file are of format
{xx:word} where xx is a number and word is a single word.
now if i look at the rtf template file it seems that "sometimes" the '{' is just beeing 'escaped' as '{' (same with '}') and sometimes its not found at all or is somehow "encoded" in some strange way. so it seems i am unable to do a "simple String replacement" .
but i would like to do just that! Something more "high level" so i dont need to care about "bytes" and weird internal character encodings while i search and replace that keyword strings.
Is there something i can use that takes away the pain of handling rtf content and lets me just do it without knowing rtf internals and without destroying formating and structure of the rtf file ?
thanks for any help! Axel