telmonks has asked for the wisdom of the Perl Monks concerning the following question:
Every file with this code in it produces messages about Wide character in print at conc.pl line 99, <FILE> line 198993. and the output formatting is messed up for other lines. I am still looking at what this might be, but it only seems to uccur in the files with that character...
I am doing all the "right" things, I think.
My perl version is (revision 5 version 10 subversion 0)
My env has LANG=en_US.UTF-8.
My code has use utf8
My input is opened
open (FILE, "<:encoding(utf8)", $filename)
My output is STDOUT
I can get rid of the errors by using binmode STDOUT, ":encoding(utf8)" but the output is still messed up.
Any clues gratefully received...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A 'special' character in utf8?
by moritz (Cardinal) on Jun 26, 2010 at 06:06 UTC | |
|
Re: A 'special' character in utf8?
by ikegami (Patriarch) on Jun 26, 2010 at 03:29 UTC |