Unicode-Bug in InsertRTFFromStreamEd ?

General TRichView support forum. Please post your questions here
Post Reply
Roliat
Posts: 21
Joined: Wed Jul 27, 2011 4:12 pm

Unicode-Bug in InsertRTFFromStreamEd ?

Post by Roliat »

Hello,

I'm trying to append RTF-Files from StringStream into one RichViewEdit. All my Strings/RTFs are stored in unicode and everything is working fine.

When I load a RTF via

Code: Select all

LoadFromStream(ss, rvynaAuto); //also rvynaYes is doing well
everything is working fine.

But now I want to append more RTF-Files so that I have to use

Code: Select all

InsertRTFFromStreamEd(ss);
The result is something like this in the attachment, in words:
-8 1 3 1-9 2 0 0 2 0 1RVStyle1Ê StyleNameNormal textFontNameTahomaUnicode StyleNameHeadingFontNameArialStylefsBoldColorclBlueUnicode StyleNameSubheadingFontNameArialStylefsBoldColorclNavyUnicode StyleNameKeywordsFontNameArialStylefsItalicColorclMaroonUnicode StyleNameJump 1FontNameArialStylefsUnderlineColorclGreenJump Unicode StyleNameJump 2FontNameArialStylefsUnderlineColorclGreenJump Unicode -9 2 0 0 2 0 2RVStyle1X StyleNameParagraph StyleTabs StyleNameCentered Alignment rvaCenterTabs-9 2 0 0 2 0 4RVStyle1-9 0 0 0 0 0 70 1 0 8 0 0teest)
So it must be a unicode-related problem.

I'm using v12.7.4

What's wrong?

Thank you!

PS: I can't upload any files... nevertheless: i think the problem is described well. Thanks
Roliat
Posts: 21
Joined: Wed Jul 27, 2011 4:12 pm

Post by Roliat »

Sorry, my fault!

My save-procedure was buggy.... After debugging and trying to locate&fix the error since 3 hours, I finally solved it.

Everything is working fine - no bug in your code (of course) ;)

Bye!
Post Reply