Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8587263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:31:39+00:00 2026-06-11T22:31:39+00:00

I created a small Eclipse application that simply prints the string äÄß via System.out

  • 0

I created a small Eclipse application that simply prints the string äÄß via System.out. When I run this application from within Eclipse the string is correctly printed out in the Eclipse console view. However if I build a product containing this application and start it on windows with eclipsec.exe, I see a─▀ printed to the console.

The product definition is:

   <configIni use="default">
   </configIni>

   <launcherArgs>
      <programArgs>-consoleLog</programArgs>
      <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
   </launcherArgs>

   <windowImages/>

   <launcher>
      <solaris/>
      <win useIco="false">
         <bmp/>
      </win>
   </launcher>

   <vm>
   </vm>


   <plugins>
      <plugin id="console-encoding"/>
      <plugin id="javax.transaction" fragment="true"/>
      <plugin id="org.eclipse.core.contenttype"/>
      <plugin id="org.eclipse.core.jobs"/>
      <plugin id="org.eclipse.core.runtime"/>
      <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
      <plugin id="org.eclipse.equinox.app"/>
      <plugin id="org.eclipse.equinox.common"/>
      <plugin id="org.eclipse.equinox.preferences"/>
      <plugin id="org.eclipse.equinox.registry"/>
      <plugin id="org.eclipse.osgi"/>
   </plugins>

   <configurations>
      <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
   </configurations>

I tried to set the value of osgi.console.encoding to Cp1252 and console.encoding also to Cp1252. I also tried changing the codepage of the command prompt where I start the eclipse application, but that didn’t help either. When I’m typing German umlauts on the console they are displayed correctly.

What do I have to do to display the German umlauts on the console correctly?

EDIT:
I have modified the application to also read a line from new BufferedReader(new InputStreamReader(System.in)) and print that out too. When the codepage of the console is set to Cp850 I can input äÄß and this is printed out. If I attach a debugger, I see that the input in eclipse looks like „Žá.

I also tried to explicitly specify the encoding via new PrintStream(System.out, true, "Cp1252"), but that didn’t change anything.

I’m using Windows 7, just in case it matters.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:31:40+00:00Added an answer on June 11, 2026 at 10:31 pm

    The easiest way of printing German umlauts to the console correctly is to use System.console() and the methods it provides.

    Another way is to configure the encoding to be used externally, via a system property for example. Then the application has to use that encoding to create the necessary Writer, Readers and Streams. For Windows systems this encoding has to be IBM850.

    The problem is that in Windows the default encoding Cp1252 is used also for System.out and System.in. But the windows console uses codepage 850 (a legacy from DOS times), which correspondents to the encoding IBM850 in Java. Since Cp1252and IBM850 are not compatible the characters get messed up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Based on this question I've created a small application which is catching all debug
I created a small WPF desktop application. I am thinking about how to make
I've created a small web service that returns some json, and the returned json
I have created a small chatting application in C#, and started as a Console
I have this application from the market in an apk format, but I want
i have used eclipse, android sdk and phonegap to create a small application. I
I created a small Android App that runs on the Android simulator/tablet just fine..
I have this error in eclipse helios: Exception occurred executing command line. Cannot run
I am using Eclipse with WindowsBuilder. I have created a small simple project to
My question : I have created and filled a Canvas in Eclipse RCP application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.