the font:
It worked in 1.5.3, but in 1.5.4, the text become some unreadable symbol, and the error message show up in colsole:
:text(warning): No definition in AR PL New Sung Reguler for character 154
Sorry, I didn’t tag this fix for 1.5.4. It will instead be part of the 1.6 branch, to be released at some time in the future. (The fix was complicated enough I didn’t want to risk breaking the 1.5.4 branch without much additional testing.)
Unicode symbol 154, or U+009a hex, isn’t a common symbol to find in text strings, in English text or in Chinese text, so it’s not surprising that it’s not in your font. (See http://www.fileformat.info/info/unicode/char/009a/index.htm). How did this character get into your text string? Is it possible that your input is garbled, or was incorrectly converted from utf-8 or some such? In any case, it doesn’t seem likely that this is a problem with Panda 1.5.4 per se; perhaps something else has changed in your application at the same time.
It is a very common encoding situation, I thought Panda3D did some tweak about it ,so I didn’t to think too much about it. people say unicode will be easy in python3.0.
anyway, it’s my bad.
In general, encoding will always be a hard thing, because there are lots of very different ways to express similar things. Until all of these different ways fall away and we only have one way to express a particular string, there will be ambiguity, and we humans will make stupid mistakes and things will come out wrong. I don’t think Python 3.0 will change any of that.