为什么在地球上是“ - ”显示为问号? [英] Why on earth is a "-" displaying as a question mark?

查看:121
本文介绍了为什么在地球上是“ - ”显示为问号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 我的WPF应用程序正在阅读文本文件并填充列表框。


  • 一个破折号,即 - ,记事本中的行将如下所示SAMPLE - TEXT


  • 当它在应用程序中显示时,破折号变成一个问号! li>

  • 然后我有一个导出按钮,将其写回文本文件。当这个符号被写回来时,在记事本中,它变成一个正方形!?!?!?


  • 为什么这是发生的?请参阅截图



    http ://img33.imageshack.us/img33/9893/whatthey.png



解决方案

它可能不是一个破折号,它是一些看起来像破折号的unicode字符。



按键盘上的减号键,然后重新输入。


  • My WPF application is reading a text file and populating a listbox.

  • Whenever I have text surrounded by a dash symbol i.e. "-", the line in notepad will look like this for e.g. "SAMPLE - TEXT"

  • When it displays it in the application, the dash turns into a question mark !?!?!?

  • I then have an Export button, which writes these back to a textfile. When that symbol is written back, in notepad it turns into a square!?!?!?

  • Why on earth is this happening? Please see the screenshot

    http://img33.imageshack.us/img33/9893/whatthey.png

解决方案

It's probably not a dash, it's some unicode character that looks like a dash.

Press the minus key on your keyboard and retype it.

这篇关于为什么在地球上是“ - ”显示为问号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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