hemanth reddy wrote: > [%str="somedata® same data"%] > > [%str%] > > output:somedata® same data > > how to escape special characters while prinitng (example  in the above > example )at template level without any perl code help > no regular expressions please
It looks like you are trying to change the character encoding on a single variable rather than escape special characters. I don't think there's anything in the standard install to do that. What you should probably be doing is making sure all your data is in utf8 format wherever it is stored and that all output specifies the utf8 character set. In a webpage that would mean setting the content-type header and/or maybe setting the content-type meta tag. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> -- Josh _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
