Read/write .txt file with special characters

后端 未结 6 739
小鲜肉
小鲜肉 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:39

    Your code looks right - but a very common, and easy, error is to misstake what is printed to screen to what's in the String. Check with a debugger if the string isn't already read right.

提交回复
热议问题