日期:2014-05-16 浏览次数:20578 次
var store = Ext.create('Ext.data.Store', { id:'simpsearchStore', autoLoad: {start: 0,limit: js_config.search_limit}, fields:['id','cmv','name','unit','freq','src'], pageSize: js_config.search_limit, proxy: { type: 'ajax', url: encodeURI('/indicator/search?q='+q), reader: { type: 'json', root: 'docs', totalProperty: 'total', } } });
function clean_string($str) { if ($this->_is_ascii($str) === FALSE) { $str = @iconv('UTF-8', 'UTF-8//IGNORE', $str); } return $str; }
function clean_string($str) { if ($this->_is_ascii($str) === FALSE) { //$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str); $str = @mb_convert_encoding($str,'UTF-8', 'UTF-8,ASCII,GBK'); } return $str; }