Results 1 to 4 of 4
- 04-28-2011, 01:50 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
Problem using the pound sterling sign (£)
I'm a fairly new user of java and am hitting trouble trying to get the £ sign to work in my program.
I'm only trying to out put it to the user:
However when I run the program the £ sign is being shown as a ú instead.Java Code:System.out.println("To travel from Leicester to Loughborough it will cost £2.50");
How can I get it to show the £ sign in the program?
To travel from Leicester to Loughborough it will cost ú2.50
Adam
- 04-28-2011, 01:55 PM #2
Works for me in eclipse, but not from the command prompt.
Also, using the following does the same thing:
System.out.println("To travel from Leicester to Loughborough it will cost \u00A3 2.50");How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 04-28-2011, 02:09 PM #3
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
Yeah its the command prompt that I need it to work in :/.
- 04-28-2011, 02:14 PM #4
This is a common problem. Here's a solution I found: I18N: Unicode at the Windows command prompt (C++; .Net; Java)
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
Similar Threads
-
Single sign on
By Enthiran in forum Advanced JavaReplies: 1Last Post: 01-14-2011, 02:01 PM -
Single Sign on
By iksaak in forum Advanced JavaReplies: 0Last Post: 07-06-2010, 08:36 AM -
the @sign
By dinosoep in forum New To JavaReplies: 2Last Post: 03-28-2010, 11:07 AM -
How To self sign applet
By Chintan Patel in forum Java AppletsReplies: 1Last Post: 03-16-2009, 02:31 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks