Read/write .txt file with special characters

后端 未结 6 741
小鲜肉
小鲜肉 2020-11-30 13:03

I open Notepad (Windows) and write

Some lines with special characters
Special: Žđšćč

and go to Save As...

6条回答
  •  失恋的感觉
    2020-11-30 13:19

    Notepad does not save special symbols correctly. I had a similar problem and I used Notepad++ instead and selected UTf-8 encoding from there. When I did this, my program no longer crashed when applying String library methods to it unlike when I created the text file in Notepad.

提交回复
热议问题