处理特殊字符并在文本块中显示它们 [英] handling special characters and displaying them in textblock

查看:79
本文介绍了处理特殊字符并在文本块中显示它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是一个Windows 8项目。


我有一个SQLite文件并从中读取记录,记录中的文本字段包含特殊符号 - 例如处理pi或下标或上标等。它们是数学方程式。


我在我的应用程序中读取了SQLite文件,并尝试在文本块中显示数据(包含特殊字符的字段)。


TextBlockY.text = textfield 我已阅读文本字段并将其存储为字符串。


我在textblockY中看到的内容 是问号而不是我的特殊符号。


我在word中创建了这些特殊符号并将其粘贴到访问中,然后将文件转换为SQLite。符号在访问时显示正常。


您对如何解决此问题有任何想法。


谢谢


Jerry










< hr>

Jerry Horton

解决方案

听起来这些符号在您使用的字体中不可用。

Hi,

This is a windows 8 project.

I have an SQLite file and am reading records from it , there are text fields in the records that contain special symbols - for example to handle pi or a subscript or superscript , etc.. They are math equations.

I read the SQLite file in my app and try to display the data (field containing the special characters) in a textblock.

TextBlockY.text = textfield  I have read textfield in and stored it as a string.

What I see in the textblockY  is question marks and not my special symbols.

I created these special symbols in word and pasted them in access and then converted the file to SQLite . The symbols display fine in access.

Do you have any ideas how to approach this problem.

Thanks

Jerry


Jerry Horton

解决方案

That sounds like the symbols aren't available in the font you are using.


这篇关于处理特殊字符并在文本块中显示它们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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