I tried this code to see if it would recognize the quotations. For testing purpose I wanted to see if it would start the string from the quotation.
Expand|Select|Wrap|Line Numbers
- str = str->Substring(line->IndexOf("\""));
- richTextBox1->AppendText(str);
Expand|Select|Wrap|Line Numbers
- str = str->Replace(S"\"",S"Fast ");
- richTextBox1->AppendText(str);
One thing that I did notice is when I open a RTF file into the richTextBox, it seems like all the characters match with each other, by this I mean when I open the RTF file into the richTextBox, let's say the RTF File had a content of ("Car"), so after the RTF file is opened, I see ("Car") on the richTextBox. Afterwards, I physically type ("Car") into the richTextBox next to ("Car") that was opened from the RTF. The word Car looks exactly the same for both input and file. In the richTextBox you would see ("Car" "Car"). On the otherhand, for quotations they appear different, depending on the font, the quotation i type into the richTextBox looks different from that was opened form the RTF file. I don't know if that helps but it's an observation.
Is there a way I can resolve this issue so that my code would recognize the quotations from the RTF file?