Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Helmut Richter
June 23, 2009, 9:18 am
rate this thread
encoding on the text: The following thing works fine:
print encode ('utf8', "München\n");
"use utf8" is necessary in order to get the non-ASCII characters into the
string at all, and the "encode" is necessary to encode the character
string into a (more or less identical) byte string. So far, so good.
Now, it is awkward to embellish every string to be output with an
"encode", so I tried the following:
binmode (STDOUT, ":encode(utf8)");
However, it turns out that the "binmode" has no effect at all, and the
perl I/O insists on encoding the text using iso-8859-1. What is wrong?
- » How to open an instance of Internet Explorer with Win32::OLE?
- — Next thread in » PERL Modules Announcements