On Mar 25, 2004, at 6:54 PM, Randy W. Sims wrote:

On 3/25/2004 5:42 PM, James Edward Gray II wrote:
Why when I run this one-liner:
perl -e 'print "\x{2660}\n"'
do I see this:
Wide character in print at -e line 1.
I'm assuming that's a warning, since I still get the expected output, but why am I getting it, when I didn't ask for them?
Is there a better way to drop in a unicode character?
Semi-related question: Is there a good document I could read somewhere on the differences for one-liners in Windows?

Hi James,


I'm not really up on unicode, but you might find something in 'perldoc perluniintro' & 'perldoc perlunicode'.

Thank you, these Documents are great, especially the first one.


If anyone is interested, you silence the warning by setting STDOUT to Utf-8 output with:

binmode STDOUT, ":utf8";

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to