Unicode characters not showing in System.Windows.Forms.TextBox(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 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:System.Windows.Forms.TextBox 中未显示 Unicode 字符
基础教程推荐
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
