Results 1 to 4 of 4
  1. #1
    sarni13 is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default 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:

    Java Code:
    System.out.println("To travel from Leicester to Loughborough it will cost 2.50");
    However when I run the program the sign is being shown as a instead.


    To travel from Leicester to Loughborough it will cost 2.50
    How can I get it to show the sign in the program?

    Adam

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default

    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!

  3. #3
    sarni13 is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default

    Yeah its the command prompt that I need it to work in :/.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default

    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

  1. Single sign on
    By Enthiran in forum Advanced Java
    Replies: 1
    Last Post: 01-14-2011, 03:01 PM
  2. Single Sign on
    By iksaak in forum Advanced Java
    Replies: 0
    Last Post: 07-06-2010, 09:36 AM
  3. the @sign
    By dinosoep in forum New To Java
    Replies: 2
    Last Post: 03-28-2010, 12:07 PM
  4. How To self sign applet
    By Chintan Patel in forum Java Applets
    Replies: 1
    Last Post: 03-16-2009, 03:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •