Hi,

Am 21.04.2014 um 11:04 schrieb Dr. Michael L. Dowling 
<[email protected]>:

> Redirecting the  output fro test.pl  to a file  and then using  the file
> binary again, one gets
> 
> $ ISO-8859 text, with no line terminators
> 
> The bvi indicates single byte German national characters.
> 
> Again, I'd be very grateful for any pointers on this.

you have to say to Perl, that it should print everything in UTF-8. Without 
this, Perl prints it in Latin-1, nevertheless if it’s correct internally or not 
:-(

e.g.

   binmode( STDOUT, ":utf8" );
   binmode( STDERR, ":utf8" );


http://perldoc.perl.org/perlunicode.html
http://perlgeek.de/de/artikel/charsets-unicode
http://www.perl.com/pub/2012/04/perlunicook-standard-preamble.html


Ciao
  Alvar

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to