locked
Double quotes problem in richtextbox RRS feed

  • Question

  • HI All,

    I am using RichTextBox. when i simple write double quotes from key board in RichTextBox, then it works fine. It saves correct string in database and also displayed correct quotes.

    But when i copy any sentence from word document having double quotes, then it gives correct string ,but does not display correct string in RichTextBox when i bind it from database. Instead it shows "?" or small box in place of double quotes.

    What could be the reason for this and how this can be solved?

    Regards

    Dheeraj

    Monday, April 26, 2010 9:23 AM

Answers

  • Hi,

    Word replaces double quotes with typographical quotes, i.e. different characters for opening and closing quotes. These characters are outside the ASCII character range. So, it either looks like the font you use in the RichTextBox doesn't support these characters, or you are copying an ANSI version of the text instead of a Unicode version.


    http://wpfglue.wordpress.com
    • Marked as answer by Aland Li Wednesday, April 28, 2010 1:34 PM
    Monday, April 26, 2010 10:27 AM