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,
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,
--- 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