Double byte characters.

I am working on a game where we consider support for languages like Chinese with double byte characters. Anyone did this before? I am wondering if it is tricky and worth the extra effort and how to read from my scripts when using chinese language.

When i read strings from script will they automatically convert to unicode and then from unicode when i print them on screen?

Save it as utf-8… read it as utf-8. As easy as that.

Then you only need some font which is able to display that kind of characters. If you’re using a logical font (such as “dialog”) it should work (as long as there is some suitable font installed).

Hmm, so this means if I use Haettenschweiler, Impact and other fonts then I need to change that for the Chinese version?

Yes, these fonts don’t cover the Chinese range.

http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp#desktop-rendering