[Templates] Wide character in print at /usr/lib/perl5/Template.pm line 168
Andrew McFarland
aamcfarland at gmail.com
Thu Nov 15 14:11:28 GMT 2007
On 14/11/2007, Josh Rosenbaum <josh at infogears.com> wrote:
> Andrew, what encoding is your data and output using?
The data comes from comments in a C++ source file, so it could be in
any encoding that can be used there. Before I get it, it is processed
by another perl script. Is there an easy way to determine what
encoding a file/data uses?
> binmode STDOUT, ":utf8";
This works. Well, this stops the warning :-)
> The Encode module is a good read for this sort of stuff:
> http://search.cpan.org/~dankogai/Encode-2.23/Encode.pm
Thanks. I'll read this.
Andrew
--
We can't change the past, but each of us, by challenging prejudice and
intolerance, can help to change the future.
- Rabbi Jonathan Sacks, Address at Holocaust Memorial Day, Westminster
Hall, London, 27th January 2005
More information about the templates
mailing list