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 字符
基础教程推荐
- 将数据集转换为列表 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 如果条件可以为空 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- 从 C# 控制相机设备 2022-01-01
