utf8 (japanese) and lwjgl

Started by keisangi, November 21, 2008, 23:04:04

Previous topic - Next topic

keisangi

hi there
i have troubles displaying japanese with lwjgl.
i have two lwjgl based projects (using jme2 and slick)
without setting up anything, in slick i have this class:
public class Weasel extends StateBasedGame { 
	public Weasel() {
		super("Space Weasel テスト");
	}
}

if i insert some japanese string in there to change the windows title i get garbage.
same in slick and jme projects.

now if i do the same in a swing based project it just work.
for example:
public class TTFtoBitmap implements ActionListener { 

    public TTFtoBitmap() {
        JFrame frame = new JFrame("Font Converter テスト");
    }
}


i need my lwjgl projects to be able to display japanese string, project contents and window title included.
what could i do?
finally, i have to say, i can use slick and jme2, but barebone lwjgl stills seems a bit tricky to me yet.
i haven't done anything directly with lwjgl yet. i might have trouble to understand and follow complex workarounds.
i'll be glad for any help but please, keep things as simple as possible ..

thanks


* update:
i made screenshots,
displayok.png is Swing based
garbage1.png is Slick based
garbage2.png is jME based
http://keisangi.free.fr/unicode/displayok.png
http://keisangi.free.fr/unicode/garbage1.png
http://keisangi.free.fr/unicode/garbage2.png