The i18n Cookbook - recipies for a global society

  • java cookbook
  • about the author
Home › Java Internationalization Cookbook › Misc

Java Cookbook

  • Java Internationalization Cookbook
    • Locales
    • Dates and Times
    • Numerical Systems
    • Misc
      • Viewing Unicode characters in the Eclipse console.
    • Resource Bundles
    • Unicode, Transliteration, and Charactersets

Viewing Unicode characters in the Eclipse console.

Problem:

You want to display Japanese, Chinese, or other Unicode characters in the Eclipse console.

Solution:

By default the eclipse console does not handle Unicode.  All Unicode characters in the Eclipse console are replaced by question marks. Luckily it is a simple matter to get Unicode characters to display. You will need to make two simple modifications to the run dialog.

 

  1. Open the Run Dialog.  
  2. Click on the second tab, "Arguments"
  3. Enter "-Dfile.encoding=UTF-8" in the second text area title VM arguments.  
  4. Click on the "Common" tab.
  5. Click on "Other" under "Console Encoding"
  6. Select "UTF-8" from the drop down.
  7. Apply and run.
‹ Misc up Resource Bundles ›
  • eclipse
  • unicode
  • Printer-friendly version
  • Add new comment

If you are testing any of these recipes in Eclipse and the characters are not displaying correctly in your console visit http://i18ncookbook.com/eclipse_settings.

This site is ad supported.  I hope you find something among our sponsors worth clicking. ;)

i18n search

Google
Custom Search

Search

Tags in Tags

calendar date icu4j Java Locale number format numberformat parse spellout timezone transliteration transliterator
more tags

User login

  • Create new account
  • Request new password
  • java cookbook
  • about the author