统一美元System.Windows.Forms.TextBox不显示C $ C字符。 [英] Unicode characters not showing in System.Windows.Forms.TextBox
问题描述
这些字符显示正常,当我剪切和粘贴它们从VisualStudio的调试器在这里,但无论是在调试器,以及在我试图显示此文字文本框,它只是显示方块。
These characters show fine when I cut-and-paste them here from the VisualStudio debugger, but both in the debugger, and in the TextBox where I am trying to display this text, it just shows squares.
说明\\ r \\ n海流受季风影响,3-9月份其流向主要向北,流速为2节,有时达3节; 10月至次年4月份其流向南至东南方向,流速为2节。\\ r \\ n注意\\ r \\ n附近有火山爆发的危险,航行时严加注意\\ r \\ n
说明\r\n海流受季风影响,3-9 月份其流向主要向北,流速为2 节,有时达3 节;10 月至次年4 月份其流向南至东南方向,流速为2 节。\r\n注意\r\n附近有火山爆发的危险,航行时严加注意\r\n
我以为文本框支持单向code文本。任何想法我怎么能得到这个文字在我的应用程序中显示?
I thought that the TextBox supported Unicode text. Any idea how I can get this text to display in my application?
推荐答案
我使用一个TextBox使用一个RichTextBox,现在的字符RichTextBox中显示的变化。
I changed from using a TextBox to using a RichTextBox, and now the characters display in the RichTextBox.
这篇关于统一美元System.Windows.Forms.TextBox不显示C $ C字符。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!