I’m trying to read text from file and Debug.Log()
it to the console. My reading script looks like this:
string fileText = File.ReadAllText(filePath,System.Text.Encoding.Default);
(I also tried Encoding.UTF8
and using StreamRenderer)
When I try to Debug.Log(fileText)
what I see is:
- Witaj podr�niku! - powidzia�a gospodyni z za lady
While it should be:- Witaj podróżniku! - powidziała gospodyni z za lady
Debug.Log("- Witaj podróniku! - powidziała gospodyni z za lady");
works just fine so the problem probably lies in reading the file, but I just can’t figure out what am I doing wrong.
This is a .csv file, but I did try with .txt - same result.
What can I do to make this script read extended latin properly?
Thanks in advance.