I have one Desktop application and I am trying to Run it with Windows Desktop and while its running correct into Ubuntu.
but while running on windows $nbsp is Replaced with some wired Char. "Â" dont know how to make it fix?
any body can give suggestion?
for (int i = 0; i < table.length(); i++) {
JSONObject data = table.getJSONObject(i);
GetStringfromjson.addItem(data.getString("SubActivityName"));
getbytesfromjson.addItem(data.getString("SubActivityName").getBytes());
gettochararray.addItem(data.getString("SubActivityName").toCharArray());
getstringonly.addItem((data.get("SubActivityName").toString().replaceAll("Â", " ")));
//System.out.println(data.get("SubActivityName").toString().trim());
// System.out.println("*********"+System.getProperty("os.name"));
if (System.getProperty("os.name").indexOf("Linux")>=0) {
System.out.println(data.get("SubActivityName").toString());
}
if (System.getProperty("os.name").indexOf("win")>=0) {
System.out.println(data.get("SubActivityName").toString());
}
}