× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You may not have the font on your machine. Swing/awt will substitute a font that's "close". The substituted font on your machine may not have glyphs for the chinese characters. Check what's in your jre/lib/fonts directory vs what's in the developer's. Likely the jre/jdk he installed has gobs more fonts, and the font files are much larger.

You don't specify a font in your tester; you use the default for the JOptionPane. Looks like your developer specified a different font, or the default fonts are different on his machine.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of James Lampert
Sent: Thursday, December 20, 2012 2:01 PM
To: Java Programming on and around the iSeries / AS400
Subject: Weird problem with a Java program accessing AS/400 Unicode data, but failing to render Chinese characters

We're having a problem with a Java program displaying Chinese characters
in a Unicode field.

I've posted a more detailed description of the problem here, complete with screen shots and a source listing of a test program:

http://www.java-forums.org/advanced-java/66813-weird-issue-chinese-characters.html#post315404

but basically, it appears that on a Chinese developer's machine (in China), everything works just fine. Yet on my machine, I get "substitute boxes" instead of Chinese characters, even though neither Firefox, nor a test Java application I wrote using Swing, has any trouble at all displaying the very same Chinese characters.

--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.