why dose not Chinese Character show?

the code I use like the pic show.

while if I input Chinese Character in the Inspector box,the Charaters show.
the Charater in the script not
I don’t know why

257476--9260--$test_330.jpg

First you need to have Chinese fonts in your unity project to able to show the Chinese Characters.

You may want to check out this post:
http://forum.unity3d.com/viewtopic.php?t=21689&highlight=chinese

Is your source code file encoded with UTF-8?

Sure,Chinese fonts are already

When I encode it with UTF8 int UniSciTE,then it return to “code page property” automatically when I open I again.

I’ve tried other editors,such as notepad++,VS2008,the problem is still existing.

anyone can help me ?

If characters entered by other means show correctly, but those in the scripts string constants don’t, then the issue must be the encoding of the script file. It needs to be UTF-8 for this to work. I don’t know how this is handled in windows text editors as I’m on a mac, but it must be possible to export text a file as UTF-8 somehow.

I had the same problem, but fixed it by setting the font.

Go to Assets->Import New Asset and select a font that you know supports the characters you want to display. Then add a GUI skin to the project, and set the font to your imported font in the GUI skin inspector. In your script, make sure it has a GUISkin variable and sets GUI.skin to that value before laying out GUI elements:

var customSkin : GUISkin;

function OnGUI()
{
    GUI.skin = customSkin;
    // ...
}

And in the scene hierarchy, select the GameObject with your GUI script attached, and set the “Custom Skin” variable to the GUISkin you created.