From 5eeaa0b673a18f5b79e3b3f11efd60fce6fa751f Mon Sep 17 00:00:00 2001 From: mikl <> Date: Fri, 18 Apr 2008 17:12:59 +0000 Subject: Fix #660 --- framework/Web/UI/TPage.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/TPage.php') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 529a6b60..2f7e1b4f 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -282,6 +282,12 @@ class TPage extends TTemplateControl $this->setAdapter(new TActivePageAdapter($this)); + // Decode Callback postData from UTF-8 to current Charset + if (($g=$this->getApplication()->getGlobalization(false))!==null && + strtoupper($enc=$g->getCharset())!='UTF-8') + foreach ($this->_postData as $k=>$v) + $this->_postData[$k]=iconv('UTF-8',$enc.'//IGNORE',$v); + Prado::trace("Page onPreInit()",'System.Web.UI.TPage'); $this->onPreInit(null); @@ -1264,4 +1270,4 @@ class TPageStateFormatter } } -?> \ No newline at end of file +?> -- cgit v1.2.3