-
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
My WPF application is reading a text file and populating a listbox. Whenever I
Share
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.