I'm developing a project for a japanese company in JXTA technology. There i had a problem to display the Japanese characters in JTextField and JTextArea. But i have to bring this in my project. If anybody knows the solution to bring the japanese characters in JTextArea and JTextField Kindly help me.
my personal mail ID : ramesh_9781@yahoo.com
ramesh_sriram@yahoo.com
I'm in a very very critical situation. plz help me
(I am not japanese, so please let someone else shed his/her light on this topic.)
1. There is an Internationalisation forum: http://forum.java.sun.com/forum.jsp?forum=16
2. The japanese locale is even very well supported.
3. In a non-japanese environment you have to take special care:
- In resource bundles everything is UTF-8. A NetBeans IDE or the like, will automatically translate those characters to \u0102 or such.
- You can use the commandline tool native2ascii to convert in any direction: japanese plain text to java UTF-8 (those \u...).
- The font must allow it. Arial Unicode MS or the like.
- You can start java with locale and encoding.
Test it in a JTextPane, where you call setPage(url) with a japanese url or HTML file (call setEditable false first).
Re: How to use Japanese characters in java applications
Sep 28, 2005 3:29 PM
(reply 3
of 9) (In reply to
#2 )
im making asoftware for japanese learning, i use php postgressql and java, my program run this way, i keep some words in japanese in postgres and i save the files in utf-8, then i displayit in a php with the java program on it..i installed japanese fonts, i instal the new java jre 1.5.0 , i had do everithing and i still cant display de japanese characters..did anyone know hot to display it on my java program? it would be appreciate!
I'm developing a project for a japanese company in
JXTA technology. There i had a problem to display the
Japanese characters in JTextField and JTextArea. But
i have to bring this in my project. If anybody knows
the solution to bring the japanese characters in
JTextArea and JTextField Kindly help me.
my personal mail ID : ramesh_9781@yahoo.com
ramesh_sriram@yahoo.com
I'm in a very very critical situation. plz help me
By
Ramesh
Set up your Japanese customers Java environment and system environment on your machine including system locale, fonts, font.properties, Java system properties including file.encoding, user.language etc.
And of course, you should use native2ascii tool for resource bundles.
Re: How to use Japanese characters in java applications
Feb 15, 2006 11:15 PM
(reply 7
of 9) (In reply to
#3 )
I have stored japanese data in postgres database. I am extracting it using rs.getString() and then displaying it on HTML page by using the encoding = "SJIS" in <XML version.. > tag and charset = UTF-8 in meta tag but still i'm not able to show the information in japanese.
the browser is showing some absurd characters like ?????????.
Pls help me out.
Re: How to use Japanese characters in java applications
Feb 16, 2006 12:11 AM
(reply 8
of 9) (In reply to
#7 )
This is not a Java problem. If the machine is set up to work with Japanese, Java will treat it like everything else. If it is not, there is no magical System.pleaseLearnJapanese() method which will solve all your problems. Set the machine up for Japanese.
I work in Japanese in Java all the time on my Windows machine with the Japanese IME installed and this is what I have to do to tailor the Java code to Japanese:
Re: How to use Japanese characters in java applications
Feb 26, 2006 5:56 PM
(reply 9
of 9) (In reply to
#8 )
Been going around in circles with this silly issue for months.... the answer is simple and stupid and is in one of the first posts above:
********************************************************* *The font must allow it. Arial Unicode MS or the like.* *********************************************************
and there I was about to resort to VB or something horrid...