Simply print the content of the text resource:
Debug.Log($"Categories json: {categoriesJson.text}");
This is the result of loading json resources as text at Unity 6:
But it works fine in Unity 2021.3:
Simply print the content of the text resource:
Debug.Log($"Categories json: {categoriesJson.text}");
This is the result of loading json resources as text at Unity 6:
But it works fine in Unity 2021.3:
Can anybody help me?
What is the exact encoding of the text file?
I doubt Unity changes the file contents, so it’s likely the detection of the encoding changed. You could try loading the text asset as bytes and then explicitly specifying the encoding when converting it to a string.
It could also be that the encoding is messed up at a later stage, so you’d need to check exactly what bytes you load and how they are processed throughout your code.