How do you convert Smarty pages between various codepages?
| From: | Bogien | Date: | Thu, 04 Apr 2002 12:36:31 +0000 |
| Subject: | How do you convert Smarty pages between various codepages? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3481@lists.php.net to get a copy of this message | ||
Hi,
How do you convert Smarty pages between various codepages?
Do you use Smarty postfilters? I do it via PHP's module "iconv" - like this:
> iconv_set_encoding("internal_encoding", "ISO-8859-1");
> iconv_set_encoding("output_encoding", "UTF-8");
> ob_start("ob_iconv_handler");
> $smarty->display("index.tpl");
> ob_end_flush();
Is it OK?