Mid dot (\'B7) becomes Question Mark (?)

General TRichView support forum. Please post your questions here
Post Reply
parywu
Posts: 2
Joined: Tue Jun 27, 2017 5:07 am

Mid dot (\'B7) becomes Question Mark (?)

Post by parywu »

Hi:
I just tried from the evaluation installation, and build a simple application (C++ Builder Berlin) to open a simple RTF file.
Then all mid dots (\'B7) become question marks (as attached 1.png).
And I used RTF Viewer, WordPad (3.png), and Winword 2016 to open the same RTF file, all the mid dots are shown properly.
Even the built-in TRichEdit control can show the mid dots properly.
I tried to change all possible RTFReadProperties.UnicodeMode values and it still has the same problem...
The RTF file is also attached (1.rtf).
Any comment is appreciated~
Attachments
1.rtf
(9.71 KiB) Downloaded 1147 times
3.png
3.png (43.21 KiB) Viewed 13395 times
1.png
1.png (16.71 KiB) Viewed 13395 times
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Mid dot (\'B7) becomes Question Mark (?)

Post by Sergey Tkachenko »

I cannot reproduce this problem, but I think I know the reason.
This text is in old-style RTF list marker keyword (used in Microsoft Word prior to 97 and in RichEdit). As I can see in TRichView code, text in old-style RTF list markers is always converted to Unicode using the system default charset. I guess you have some Far East charset where #$B7 is not a dot.
I'll fix this problem in the next update.
parywu
Posts: 2
Joined: Tue Jun 27, 2017 5:07 am

Re: Mid dot (\'B7) becomes Question Mark (?)

Post by parywu »

Thanks~ I will look forward to the update.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Mid dot (\'B7) becomes Question Mark (?)

Post by Sergey Tkachenko »

Fixed in TRichView 16.15.5
Post Reply