System.Windows.Forms.TextBox 中未显示 Unicode 字符 [英] Unicode characters not showing in System.Windows.Forms.TextBox

查看:14
本文介绍了System.Windows.Forms.TextBox 中未显示 Unicode 字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从 VisualStudio 调试器将这些字符剪切并粘贴到此处时,它们显示正常,但在调试器和我尝试显示此文本的 TextBox 中,它只显示正方形.

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.

海流影响,3-9 月向北流向主要风向,3-9 为其东南节,有时达2 节;10 月至2 日至次年4 月向南流向,当季受其影响为2 注意 附近有火山爆发的危险,航行时严加注意

说明 海流受季风影响,3-9 月份其流向主要向北,流速为2 节,有时达3 节;10 月至次年4 月份其流向南至东南方向,流速为2 节。 注意 附近有火山爆发的危险,航行时严加注意

我认为 TextBox 支持 Unicode 文本.知道如何让这个文本显示在我的应用程序中吗?

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 中未显示 Unicode 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆