Changeset 2438
- Timestamp:
- 04/18/2008 12:12:59 PM
- Files:
-
- trunk/framework/Web/Javascripts/TJSON.php (modified) (1 diff)
- trunk/framework/Web/UI/TPage.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/framework/Web/Javascripts/TJSON.php
r1739 r2438 147 147 148 148 case 'string': 149 if (($g=Prado::getApplication()->getGlobalization(false))!==null && 150 strtoupper($enc=$g->getCharset())!='UTF-8') 151 $var=iconv($enc, 'UTF-8', $var); 152 149 153 // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT 150 154 $ascii = ''; trunk/framework/Web/UI/TPage.php
r2391 r2438 282 282 283 283 $this->setAdapter(new TActivePageAdapter($this)); 284 285 // Decode Callback postData from UTF-8 to current Charset 286 if (($g=$this->getApplication()->getGlobalization(false))!==null && 287 strtoupper($enc=$g->getCharset())!='UTF-8') 288 foreach ($this->_postData as $k=>$v) 289 $this->_postData[$k]=iconv('UTF-8',$enc.'//IGNORE',$v); 284 290 285 291 Prado::trace("Page onPreInit()",'System.Web.UI.TPage');
