This is a migrated thread and some comments may be shown as answers.

Bullets turning into question marks, XamlFormatProvider

1 Answer 114 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 28 Nov 2011, 07:26 PM
I'm hoping you guys can shed some light on this even though I can't reproduce it in your online demo.

Bullets are turning into question marks. We are using the ribbon UI - if a user types a bullet list, the bullets look fine until they save. Immediately on clicking save the bullets turn to question marks. It is a mystery because the save button is bound to a command on our view model - it just saves the changes to the database. no transform whatsoever. I've read that certain fonts can cause the question marks, we are using verdana, calibri, arial - those have all done it. 

Here's a little bit of code though I'm not sure it will help:

<telerikXaml:XamlDataProvider Name="xamlDataProvider" RichTextBox="{Binding ElementName=radRichTextBox1}" Xaml="{Binding Path=Document.Content, Mode=TwoWay}" />
...
<telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" Command="{Binding Path=SaveCommand}" Size="Large" LargeImage="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/save.png"  SmallImage="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png" Text="Save" />
...
SaveCommand = new DelegateCommand(Save, () => Document != null && SecurityClearance >= SecurityClearance.FullControl);

private void Save()
        {
            _repository.Save(OnSaveSuccess, RaiseException);
        }

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 01 Dec 2011, 01:01 PM
Hello Adam,

The bullet symbols do not use the font family of the text. The default bulleted list for example uses symbols in the following FontFamilies: Symbol, Courier New and Wingdings.
XamlFormatProvider and XamlDataProvider are able to preserve the formatting, but it is possible that the fields in your database that store the result of the export are not unicode and convert these symbols to "?". You should check the settings of your database and adjust them to handle unicode characters correctly.
On a side note, this blogpost describes how you can define and use other bullets for the multilevel lists, if you want to customize them.

All the best,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Adam
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or