- Home /
Alt codes and TextMeshes, does it work?
I'm reading a .txt document via StreamReader (C#) and I'm feeding that into a TextMesh through string conversion, and I was wondering if anyone knew if Unity has a hard time parsing Alt codes?
At the end of the txt doc I have a copywrite symbol (©) and I'd like that to display but nothing is showing up.
The only other thing I can think of is that it might be an issue with the fonts I've chosen to load into Unity. But through testing a few others its either a series coincidences or the earlier issue I think.
Thanks for the help!
Answer by keyp3r · Jul 30, 2012 at 08:44 AM
A little further testing shows that it doesn't even leave a space where the alt code symbol was, leading me to believe, even more, that its a string parsing issue within Unity, because if it weren't it would at least recognize a character of some kind, but would probably leave it blank or blacked out.
Ha, ok. Just figured out how to do that. lol Haven't actually answered many questions on here yet.
Answer by keyp3r · Aug 10, 2012 at 12:21 AM
Figured it out... It was a txt file encoding issue. I didnt know but I was saving it out as a ANSI but I should be saving it out as any of the Unicode types. Good to know! Hope this helps some lost soul down the road.
Thanks! You should mark this answer as accepted so anyone dropping by later can quickly see it.
Your answer
Follow this Question
Related Questions
Playernames on top of the gameobject on a text mesh 1 Answer
3D Text fading out 2 Answers
How to change text on a TextMesh with a non-dynamic font on iOS? 2 Answers
3DText with outline 0 Answers
Reset Boxcollider around new text 0 Answers