By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,737 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,737 IT Pros & Developers. It's quick & easy.

Displaying Japanese characters

P: 11
I'm attempting to write a program that quizzes the user on hiragana and katakana. Unfortunately, I can't figure out how to write the code so System.out.println or JOptionPane.showMessageDialog will actually display the characters. I thought it might use Unicode, but if it does, I attempted it incorrectly.

Any assistance would be helpful! Thanks!

Koji
Nov 17 '06 #1
Share this Question
Share on Google+
3 Replies


10K+
P: 13,264
I'm attempting to write a program that quizzes the user on hiragana and katakana. Unfortunately, I can't figure out how to write the code so System.out.println or JOptionPane.showMessageDialog will actually display the characters. I thought it might use Unicode, but if it does, I attempted it incorrectly.

Any assistance would be helpful! Thanks!

Koji
maybe this might help
http://www.bolthole.com/java/unicode/mswin.html
Remember that the font must allow it, Arial Unicode MS etc
Nov 17 '06 #2

P: 11
Yeah. Not only is that rather outdated, but I also don't understand much of it. Heh.
Nov 17 '06 #3

P: 11
Ok, just so anyone else knows who ever finds this, you display Japanese characters using unicode by using the unicode number as a String like so:

String a = "\u304F"

That's く or "ku"

I'm glad that anyone who reads this will now know what I had to look around for a week to find out. :D
Nov 19 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.