PDA

View Full Version : [Java] Chaacter Encoding conflict with command prompt


ReadMe.txt
10-02-2005, 12:28 PM
I am attempting to display the £ sign, character 0163 in unicode, via System.out.print to the console in windows 2k, however i am greeted by the character ú whenever i try.

I can only deduce that there is some sort of character encoding conflict - but I am fairly new to java and have no idea how to rectify the problem, can anyone shed some light on it?

KeZZeR
10-02-2005, 04:57 PM
System.out.println("£"); ? :p

I guess you're doing something else but aren't there usually different character encoding formats, ASCII being the most popular? I've no experience with it personally

ReadMe.txt
10-03-2005, 12:06 AM
So the point of your post was....?

Both "£" and "\u00A3" produce the ú character, i need some way to encode the string into ISO-8859-15 before output.

rpgfan3233
10-03-2005, 01:47 AM
The console uses pure ASCII, so I think a good idea would be to consult an ASCII reference rather than use Unicode.

Edit:
ASCII character set (from QBasic):
http://heim.ifi.uio.no/~stanisls/helppc/ascii.gif

KeZZeR
10-03-2005, 10:53 AM
So the point of your post was....?

To tell you that it's probably the ASCII character set you're looking for :)