views:

766

answers:

2

I use the WPF RichTexBox control in WPF project. The problem I get stuck in is it cannot display the unicode as the System.Windows.Forms.RichTextbox in Win Project.

E.g : When I copy a paragraph of Chinese language and paste it to the WPF Richtextbox. The font is break and it cannot display. But when I use System.Windows.Forms.RichTextbox control then I display ok.

So, how can I resolve this problem in WPF project.

A: 

I would guess that you're using a font that doesn't support Unicode. Try making sure you're using a Unicode-capable font to display the Chinese characters. (If you don't know, try a few common fonts, like Tahoma, in wordpad.)

John Fisher
A: 

Thanks John Fisher, I use Tahoma as well as Ms San Serif. But it cannot display? I create WPF project in VS2008, drag and drop WPF Richtextbox. Copy a Chinese paragraph into the control. But it break font.