Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Perl only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Perl
Printing a pound sign £
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
watcher00
New Member
Join Date:
Mar 2007
Posts:
4
#1
Printing a pound sign £
Mar 8 '07, 10:51 PM
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
Join Date:
Oct 2006
Posts:
1086
#2
Mar 8 '07, 11:27 PM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment