x


Question about foreign language characters on GUI

Hi,all! I'm trying to let some foreign language characters be shown on GUI, like chinese or japanese or something. I drag the .ttf file from the Fonts folder to Unity and create a new GUISkin using this .ttf and apply it to a GUI. But still all of the non-english characters are "???". Is there anyone could give me a hand? I've stuck on this problem for a long time. THX!

my unity is 2.6.1, free version. Neither on Mac or Windows could Unity show the foreign language characters correctly on GUI.

more ▼

asked Aug 28 '10 at 02:53 PM

frank gravatar image

frank
73 9 9 12

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Just use UTF-8 encoding for the script.

alt text

more ▼

answered Aug 28 '10 at 08:34 PM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

THX, dude! I will have a try.

Aug 29 '10 at 01:08 AM frank

Another question, maybe stupid. How can I tell whether it is UTF-8 encoding? If not, how can i transform it to UTF-8?

Aug 29 '10 at 01:12 AM frank

@CHyTER: It should say so in your editor. To change it, there should be a menu item or preferences item somewhere. If not, get a new editor. ;)

Aug 29 '10 at 03:08 AM Eric5h5

Thanks again...

Aug 29 '10 at 04:04 AM frank

I changed the text to UTF-8, but they are still "???"...

Aug 29 '10 at 08:29 AM frank
(comments are locked)
10|3000 characters needed characters left

@frank I know this is a closed thread but can you tell me how did you solve this? I am facing the same problem.

more ▼

answered Jun 07 '12 at 09:04 AM

swatinandy89 gravatar image

swatinandy89
-4 2 3 3

Checkout http://forum.unity3d.com/threads/164726-Using-unicode-(UTF-8-UTF-16)-script-in-MonoDevelop.

In short: open with notepad++. Convert to utf-8 (not the one without bom). It worked for me.

Apr 04 at 05:12 PM Gurc
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3699
x60
x1

asked: Aug 28 '10 at 02:53 PM

Seen: 1806 times

Last Updated: Apr 04 at 05:12 PM