C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1RichTextBox RTF-Import issue with foreign languages

rated by 0 users
This post has 2 Replies | 1 Follower

Not Ranked
Posts 2
lohocla Posted: Tue, Jun 23 2009 6:36 AM

 My company is looking for a Silverlight RTF-Control able to view/edit RTF documents created by another tool. We need to support different languages.
That's why I'm evaluating your C1RichtTextBox control - which by the way does a good job.

But I came up with one issue, that would be a show stopper for us: Converting RTF documents containing non latin characters (most times) leads to extra characters being displayed after the original character - or to documents containing "boxes" instead of the character. (Entering the same character in the editfield directly works fine)

Quick way to reproduce:
Enter an 'œ' (HTML: œ UNICODE: #339) to a Word document - save as RTF - copy RTF source code to your demo applications "Load from RTF" => only empty "box" will be displayed
To get a more impressive effect, use chinese or japanese characters.

Am I doing something wrong? Is this a known issue?
Thanks for your answers
lo

Top 10 Contributor
Posts 1,009
C1_MaxM replied on Tue, Jun 23 2009 10:19 AM

It was a bug, there were some characters from the ansi codepage not correctly handled. I just added them, and also made the code a bit better to support other code pages. Note that currently we only support the ansi 1252 code page, Silverlight only has support for unicode, no code pages. So the 1252 code page is hard coded in the RtfFilter library, other code pages can be added (we ship the source of the RtfFilter as a sample). We also support unicode characters (that is, \uN in rtf), so if the rtf editor you are using saves characters in unicode it should work fine, MSWord seems to save characters in ansi 1252 when it can, and unicode otherwise.

The fixes made to the RtfFilter will be included in the next release.

Not Ranked
Posts 2
lohocla replied on Tue, Jun 23 2009 10:25 AM

 Thanks for the quick answer. I look forward to test the new version!

Page 1 of 1 (3 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2009 ComponentOne LLC All Rights Reserved.