I used the combination of PHP and PHPLIB to create a Chinese website and found that there were corrupt text at various places. When I displayed the text by 'echo $contents;', it's completely correct. I believe the corrupt text was caused by PHPLIB ignoring everything surrounded by curly braces ({ and }) during parse. I can't change the fact that Chinese characters may contain { or } in the internal code. And I don't want to give up using template just yet. Is there any work-around for this problem at all or do all Chinese PHP programmers avoid using template?
The lines I used to display the Chinese text are as follows:
ob_start();
ob_implicit_flush(0);
(Chinese Text Here)
$contents = ob_get_contents();
ob_end_clean();
$t->set_var("content",$contents);
$t->parse("main_center","content",true);
....
$t->pparse("FinalOutput","main");
Wendy Liu