私のコード:
StringReader tr = null;
TextAsset data = (TextAsset)Resources.Load("data.ext", typeof(TextAsset));
tr = new StringReader(data.text);
sTemp = tr.ReadLine();
Debug.Log(sTemp);
data.ext ファイル:
00!%%%£r!%%%£122222230e0e01255
私の出力:
00!%%%r!%%%122222230e0e01255
As you can see StringReader (or possibly TextAsset) doesn't seem to like the £ character. I thought there might be some strange escape type of character which I didn't know about I have looked on the .net and unity docs, but I can't find any explanation or any mention about special characters.
This one has me completely stumped. I am compiling in Unity3D which uses mono .NET. I might do some tests using the official .NET compiler.
Thanks for your help.