Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Lando100 on November 21, 2012, 11:57:05 AM

Title: this "•" symbol won't work through code!?
Post by: Lando100 on November 21, 2012, 11:57:05 AM
if I enter "•" through code e.g. UILabel.text = string1 + " • " + string2; the "•" appears as "???" but if i enter it manually in the inspector it appears fine!!!!!

Is this a bug or am I missing something? this has also happened with some other special characters in the past such as "°", any help or clarity would be great.

Thanks
Lando
Title: Re: this "•" symbol won't work through code!?
Post by: Nicki on November 21, 2012, 05:23:43 PM
Hmm, I'm not sure to be honest. Perhaps the code is defined as UTF 8 and that doesn't translate directly into string literals all that well?
Title: Re: this "•" symbol won't work through code!?
Post by: ArenMook on November 21, 2012, 05:27:04 PM
It's because of how your code file is saved. The string you're passing isn't actually UTF8, so it can't process characters like that. Try loading from an external file instead, like Localization does.