in reply to Re^4: Perl UTF-8 serving HTML5
in thread Perl UTF-8 serving HTML5
The binmode STDOUT, ':raw:encoding(UTF-8)'; is kinda close, but the count is off by 1. Adding 1 and it works. I am using Perl 5.22.1 if that helps.
Update: Now that I reviewed the numbers from counting line breaks and binmode STDOUT, ':raw:encoding(UTF-8)';. Counting line breaks will give you a much lager number, that is why it works. Where using binmode STDOUT, ':raw:encoding(UTF-8)'; and adding one to it. Then its just right.
What kind of portability issues will I face when using something like this on Linux?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl UTF-8 serving HTML5
by Anonymous Monk on May 29, 2016 at 23:02 UTC |