All computer source code presented on this page, unless it includes attribution to another author, is provided by Ed Halley under the Artistic License. Use such code freely and without any expectation of support. I would like to know if you make anything cool with the code, or need questions answered.
 * Demonstrate and explain Eclipse UTF-8 Console Problems.
package cc.halley.kata.util;


public class Utf8ConsoleTest
        public static void main(String[] args)
                PrintStream out = System.out;
                out.print("Japanese Hiragana 'A' looks like this: ");
                 * If that didn't appear as a Japanese Hiragana 'A' character,
                 * which is a curvy character composed of three strokes crossing,
                 * then your console isn't fully prepared for UTF-8 encoding.
                 * Eclipse (Ganymede):
                 *   Window > Preferences : 
                 *   Java > Installed JREs > (current jre) : 
                 *   Edit > Default VM Arguments
             *   (Add -Dfile.encoding="UTF-8" to the options.)
                 * Eclipse (Ganymede):
         *   Window > Preferences :
                 *   General > Appearance > Colors and Fonts :
                 *   Console Font
                 *   (MS Mincho suggested for Japanese.)
             * The Eclipse Console view shares a common lazy limitation:
             * it assumes that all of the displayed text in a given window
             * must be renderable by glyphs found in a single chosen font.
             * Any missing glyphs are rendered as a box or question mark.
             * The Unicode standard specifies over 100000 code points.
             * A single TTF font file can only contain 65535 glyphs.
             * Most TTF files will focus on one or two languages.
             * Any window that combines, e.g., a little Arabic and some
             * Chinese would likely run into this kind of display
             * problem.
             * Good text displays will automatically fall back 
             * on alternative font(s) when a requested Unicode point 
             * is not available in the currently configured font.

Contact Ed Halley by email at
Text, code, layout and artwork are Copyright © 1996-2013 Ed Halley.
Copying in whole or in part, with author attribution, is expressly allowed.
Any references to trademarks are illustrative and are controlled by their respective owners.
Make donations with PayPal - it's fast, free and secure!