Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Problem with print chr()

by ccarden (Monk)
on Sep 17, 2004 at 18:12 UTC ( [id://391865]=note: print w/replies, xml ) Need Help??


in reply to Re: Problem with print chr()
in thread Problem with print chr()

That did it.

All these years and I've never come across this before. Is it the OS that is set up to use unicode? I imagine it must be a default system setting.

I notice that if I put the copyright symbol in comments or POD documentation it shows up as unicode, too, so I wonder how I might get it to work there. Any ideas?

It's just an annoyance, but it's nice knowing what's going on. Thanks for the tip about the encoding.

Replies are listed 'Best First'.
Re^3: Problem with print chr()
by graff (Chancellor) on Sep 18, 2004 at 00:37 UTC
    Is it the OS that is set up to use unicode? I imagine it must be a default system setting.

    It depends on the OS, and how your user environment is set up, and which perl version you're using -- e.g. on Redhat 9, the default user environment includes "utf8" as part of the locale setting, and perl 5.8.0 in that setup would treat the locale setting as the default encoding for all i/o. A lot of people got tripped up by that, so as of 5.8.1, perl doesn't behave that way anymore.

    You just have to study the relevant details for your particular setup. The perlunicode and perllocale man pages you have there should help to figure out what's going on.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391865]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-25 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found