Re: Characterset problem
[email protected] (Alvar Freude) Mon, 21 Apr 2014 11:51:58 +0200
| Newsgroups | perl.dbd.pg |
|---|---|
| Message-ID | <[email protected]> |
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
signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlNU6j4ACgkQOndlH63J86yFkACfe+1yCqsqkto/ywmwXLExmDGU 3OAAmgMyWTBNFBYIuxBsKMh14mLxfj8b =l25c -----END PGP SIGNATURE-----