Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Problem with Unicode in windows powershell

  1. #1
    Junior Member
    Join Date
    Apr 2020
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with Unicode in windows powershell

    Hi, i am new to Java and i have the following problem:
    When i compile and run the following code in windows powershell i am getting wrong characters in the output.
    I need to output Greek letters from the following utf-8 encoded file: Hello.java, in powershell. How can i do that?
    public class Hello {
    	public static void main(String[] args) {
    		System.out.println("Γεια σου κόσμε.\n");
    	}
    }
    Last edited by Norm; April 25th, 2020 at 08:45 AM. Reason: Added []s to code tags

Similar Threads

  1. JMF in Windows 7 - Problem Solved
    By gsdhillon in forum Member Introductions
    Replies: 0
    Last Post: August 15th, 2013, 01:08 AM
  2. Replies: 0
    Last Post: April 8th, 2012, 04:35 AM
  3. Problem running .jar in Windows 7
    By SpiceProgrammer in forum Java Theory & Questions
    Replies: 3
    Last Post: December 21st, 2011, 01:28 AM
  4. Strange problem printing Unicode characters
    By sophist42 in forum What's Wrong With My Code?
    Replies: 9
    Last Post: April 29th, 2011, 10:53 AM
  5. combobox unicode problem
    By trexi in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: January 18th, 2011, 11:06 AM