PDA

View Full Version : Json and Shift_JIS help



itlvk
12 Jun 2010, 2:31 AM
I'm using Gridview display list. But not display shift_jis encoding

Store code:


var function_list_store = null;
function createStore() {
function_list_store = new Ext.data.JsonStore({
url: '/function/list',
root: 'functions',
fields: ['id', 'is_actived','function_name', 'function_type', 'description','edit_link'],
disableCaching: false,
autoLoad: true,
remoteSort: true
});
return function_list_store;
}


Server perl code:


while ( my $func = $rs -> next ) {
push( @data, {
id => $func -> function_id,
function_name => $func -> function_name,
function_type => '',
is_actived => &crm::Controller::Common::active_convert($func -> is_actived),
description => $func -> description,
edit_link => '<a href=/function/edit/' . $func -> function_id . ">??</a>"
} );
}
$c -> stash -> { 'total' } = $total;
$c -> stash -> { 'functions' } = \@data;

$c -> detach( $c -> view( 'view_json' ) );


Please help me, thanks