On 14/11/2007, Josh Rosenbaum <[EMAIL PROTECTED]> 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

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to