Login Register

Changing charset?

I created a dijit Tree with a json resource and it displays the german special characters like ä, ö, ü as "?" symbols. the same happens if i want to display this characters in a dojox Grid. the page encoding and charset is set to utf 8.

here's an example of my tree:

for those who dont't know about jsp, "<%@ page language="java" pageEncoding="UTF-8"%>" tells the server to return the response in utf-8 format.

customerTree.jsp start:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/";
%>

<html>
<head>
<script type="text/javascript">
var clickedCustomerTreeNode = 0;
function getCustomerNode() {
return clickedCustomerTreeNode;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../style/stylesheet.css">
<script type="text/javascript" src="../js/dojo/dojo.js"
djConfig="isDebug:false, parseOnLoad: true"></script>
<script type="text/javascript" src="../js/dojo/poseidon_dojo.js"></script>
</head>

<body class="soria">
<div dojoType="dojo.data.ItemFileReadStore" jsId="customerTreeStore"
url="../customerTree.json"></div>
<div dojoType="dijit.tree.ForestStoreModel" jsId="customerTreeModel"
store="customerTreeStore" query="{type:'customer'}"
rootId="customerRoot" rootLabel="Customers" childrenAttrs="children"></div>
<div dojoType="dijit.Tree" id="customerTree"
model="customerTreeModel" showRoot="false">
<script type="dojo/method" event="onClick" args="item">
if (item) {
clickedCustomerTreeNode = customerTreeStore.getValue(item, "id");
}
</script>
</div>
</body>
</html>

end

regards Talen

Edit: If I use Internet Explorer, the Tree isn't displayed at all. if i remove the special characters it works.