Reputation: 11
I'm trying to write a program that writes the pound sign '£' in Haskell, but it outputs '\163' whenever I try to use it. I'm guessing that this is some alphanumeric code, but how do I get it to display what I want it to? I'm writing to the console, when calling a function that returns '£'.
Thank you.
Upvotes: 0
Views: 174
Reputation: 11
This was solved by using putStrLn, because print
and show
do not allow for non-ASCII characters to be shown.
Upvotes: 1