[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

display japanese characters in java

Posted on 1999-12-26
2
Medium Priority
?
235 Views
Last Modified: 2013-12-03
Can u please tell me how to display japanese characters in java ??

Any sample program will be of great help
0
Comment
Question by:pramodrrao
2 Comments
 
LVL 2

Accepted Solution

by:
meming earned 300 total points
ID: 2307254
Check out the following applet code and the package it belongs to:
jdk-doc-1.2/guide/internat/demos/code/MessageFormatDemo.java

It has sample code of switching Locale to Japanese:
....
Locale[] locales = Utility.getG7Locales();
Locale locale = locales[8]; // Japanese Locale
ClassLoader classLoader = this.getClass().getClassLoader(); // reload myself
ResourceBundle choiceResources =
  ResourceBundle.getBundle("ChoiceResource", locale);
patternText.setText(choiceResources.getString("patternText")); //redisplay text...
....

You can get JDK doc as a separate download from Javasoft.com.
0
 

Author Comment

by:pramodrrao
ID: 2308815
Thank u for answer.
I just had one more query.

Do i hv to install japanese font on my machine to display these characters OR
java displays this using unicode characters.
please explain.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question