Unicode characters not showing in System.Windows.Forms.TextBox

前端 未结 3 996
慢半拍i
慢半拍i 2020-12-06 17:11

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

3条回答
  •  醉话见心
    2020-12-06 17:50

    I was facing similar problem.

    It was problem with reading file properly and not with TextBox control.

    StreamReader reader = new StreamReader(inputFilePath, Encoding.Default, true)
    

    Copied from THIS.

    Works for me and that too without switching to RichTextBox.

提交回复
热议问题