Printing a pound sign £

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • watcher00
    New Member
    • Mar 2007
    • 4

    Printing a pound sign £

    every time i try to print "£" i get "ú" instead

    This
    Code:
    print("£");
    produces ú rather than £

    how can i change this?
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    This depends on your console environment. If you're using extended ascii, you can "print chr(156);". If you're using utf8, you can "print chr(163);".

    We can't predict what type of encoding that you're using, so we can't really tell you how to accomplish this.

    - Miller

    Comment

    Working...