Re: error in printing unicode

2008-05-08 Thread Dr.Ruud
Daniel McClory schreef: > use utf8; #this tells perl that there are unicode characters > inside the .pl file No. From the doc: "Do not use this pragma for anything else than telling Perl that your script is written in UTF-8." Also look for "lexical scope" in that doc. Remember, ASCII characters

Re: error in printing unicode

2008-05-08 Thread Daniel McClory
There are basically 3 lines that you'll want to be using if you're going to be using unicode in your perl scripts - one for input, one for output, and one for using unicode characters within the perl script itself. binmode STDOUT, ":utf8"; #this tells perl that the stdout is to be enco

error in printing unicode

2008-05-08 Thread Vlad Stanimir
I just finished reading "Beginning Perl by Simon Cozens Chapter 1: First Steps In Perl" and i tried to print a Unicode character using the \x{} but i got a strange outcome i don't understand. The code was: #!/user/bin/perl use warnings; print "\x{2620}\n"; and the result was: Wide character i