Displaying Japanese characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Koji
    New Member
    • Oct 2006
    • 11

    #1

    Displaying Japanese characters

    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.prin tln or JOptionPane.sho wMessageDialog 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
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Koji
    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.prin tln or JOptionPane.sho wMessageDialog 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

    Remember that the font must allow it, Arial Unicode MS etc

    Comment

    • Koji
      New Member
      • Oct 2006
      • 11

      #3
      Yeah. Not only is that rather outdated, but I also don't understand much of it. Heh.

      Comment

      • Koji
        New Member
        • Oct 2006
        • 11

        #4
        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

        Comment

        Working...