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

Rendering UTF-8 characters

1 Answer 207 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 05 Mar 2013, 04:06 PM

I am trying to insert an html string into the RadRichTextBox.  It has some UTF-8 characters which are represented as the character which is the no break space character.  My understanding is that this character should render as a space character, but instead, I’m seeing the  character.  Can you tell me how to configure the HTMLFormatter so that I can import this string and have it rendered without characters displayed correctly?

<span style=\"font-weight: bold;color: #000000;\">To:                                               </span>

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 11 Mar 2013, 08:20 AM
Hi Jim,

HtmlFormatProvider expects a string or stream with encoding UTF-8. I tested how "&nbsp;" characters are imported and they were imported as non-breaking spaces. What is probably happening is that the input you pass is with another encoding (e.g. Western European - ISO 8859) and at some point the characters get messed up. Please, check what the string looks like when passed to HtmlFormatProvider and if you manage to reproduce the incorrect behavior, open a support ticket with a file or demo illustrating it.

Regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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