I have some templates that generate web pages. The templates themselves only contain ASCII*. They include some data that is extracted from a database and some of the data values are now Unicode UTF-8 (they contain non-break space and some quote marks). But the resultant HTML file that is generated contains the Windows-1252 code for these characters (i.e. single byte values rather than double).
What is the best way to persuade TT to generate a Unicode file? * Actually, there is one sub-template that is PROCESSED that contains a Unicode copyright symbol and that is put in the output file unchanged. Just to confuse me further. IIUC when strings are joined, Perl should automatically 'upgrade' them from ASCII to Unicode if necessary, so it seems TT isn't looking at what type of string it has when it comes to write out the file? But I expect I've misunderstood something. _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates