[PHPTAL] Recommendation for the dynamic definition data encoding in source of template.

2009-04-24 Thread CREATIVE0809
Thanks for the patch, however I'm not going to apply it, because it introduces unnecessary runtime overhead, and doesn't solve the problem entirely (there are other places which depend on encoding). Instead I've made PHPTAL reparse the template whenever encoding is changed. -- regards,

Re: [PHPTAL] Recommendation for the dynamic definition data encoding in source of template.

2009-04-24 Thread Kornel LesiƄski
On 24-04-2009 at 08:19:41 CREATIVE0809 trance_creat...@mail.ru wrote: My site use several locales in the same time. Encoding can differ from user to user. UTF-8 would save you a lot of hassle. That's why i'm wrote this patch. I need simple way to set the encoding during script's execution,

[PHPTAL] Recommendation for the dynamic definition data encoding in source of template.

2009-04-23 Thread CREATIVE0809
--- a/State.php +++ b/State.php @@ -109,7 +109,7 @@ class PHPTAL_Php_State } private function _interpolateTalesVarsEscaped($matches) { -return '?php echo phptal_escape('.phptal_tale($matches[1]).', ENT_QUOTES, \''.$this-_encoding.'\');?'; +return '?php echo