如何从jsp获取西里尔文本?

时间:2012-11-01 10:41:05

标签: javascript jsp extjs

我将内容从jsp渲染到我的Ext.Window:

    var x = new Ext.Window({
id: 'myWindow', 
title:'Аттрибуты',
layout: 'fit',
autoScroll:false,
width:600,
autoLoad : {  
    url : url_servlet+'form.jsp',  
    scripts: true  
}
})
x.show();

得到这个:

enter image description here

当我在jsp中设置UTF8时:

 <%@ page language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"%>

我明白了:

enter image description here

当我设置cp1251时,我得到了这个:

enter image description here

如何以正确的编码方式获取文本?

0 个答案:

没有答案
相关问题