This discussion is archived
0 Replies Latest reply: Mar 17, 2011 3:09 PM by 848393 RSS

console character set

848393 Newbie
Currently Being Moderated
Hi, I want to read the follownig String from console: "I♥NY" .
I cannot find the way to read in the heart symbol correctly.
I tried using all availabe character sets for conversion from System.in binary stream data to character data, without success:
e.g.:
InputStreamReader in = new InputStreamReader(System.in, "utf-8");

What am I missing here ?

Thanks a lot.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points