Q:

Print albanian characters in cmd using Java program

I have a string "Përshëndetje botë!" in a .java file and I am trying to print it using System.out.println(). The file is in ISO-8859-1 encoding.  In cmd I do
chcp 28591

to change the encoding to ISO-8859-1 (per the list). 
Then I compile a .java file using 
javac -encoding ISO-8859-1 C:\...\Hello.java

and run it using 
java -Dfile.encoding=ISO-8859-1 packagename.Hello

In this case the ë are replaced with spaces.  I also tried
java -Dfile.encoding=ISO88591 packagename.Hello

and the ë were replaced with wrong foreign symbols.
How would I get it running?

A:

Actual answer
Per the OP's comment, the actual issue was that the font cmd was using didn't have the relevant symbols.
Original post
I'm posting this as an answer because what I want to say is too long for comments :) .  
First, please edit your question to include a minimal example of the printing code.  For example, if you could write a separate Java program that did nothing but print the message, that would be much easier to debug.  (Maybe packagename.Hello is such an example, but I can't tell.)
Second, please try the below, and edit your question to include the results of each step.

Check the actual bytes in your source file to confirm its encoding, then edit your question to include that information.  You can use, e.g., the FileFormat.info hex dumper (I am not affiliated with it).  For example, here is the output for your string, pasted into a UTF-8 text file:
file name: foo.txt
mime type: 

0000-0010:  50 c3 ab 72-73 68 c3 ab-6e 64 65 74-6a 65 20 62  P..rsh.. ndetje.b
0000-0017:  6f 74 c3 ab-21 0d 0a                             ot..!..
                  ^^ ^^                                        ^^

Note, at the ^^ markers, that ë in UTF-8 is 0xc3 0xab.
By contrast, in ISO 8859-1 (aka "latin1" in vim), the same text is:
file name: foo.txt
mime type: 

0000-0010:  50 eb 72 73-68 eb 6e 64-65 74 6a 65-20 62 6f 74  P.rsh.nd etje.bot
0000-0014:  eb 21 0d 0a                                      .!..
            ^^                                               ^

Note that ë is now 0xeb.
Try running your command as java packagename.Hello, without any -D option.  In my answer that you read, the -D option to java was not necessary.
Try code page 1250, as in the earlier question.

