开发者

Why on earth is a "-" displaying as a question mark?

开发者 https://www.devze.com 2023-01-06 18:11 出处:网络
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\"
  • 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 applicat开发者_如何学Cion, 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.


Most likely it's an en dash or em dash rather than a real hyphen or minus symbol.

Typesetters will most likely try to track you down and beat you to death if they discover you're using the wrong term :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消