Random Project

to see the message on dspmsg

with an other person. We change this to see the message on dspsmg

public static int parseDspMsg(String paramString) {
if (paramString.indexOf(LANG.NO_MESSAGES_AVAILABLE) != -1) {
System.out.println(“OK – No messages”);
return 0;
}

int i = paramString.indexOf(“cessitant une r”, 0);
int j = paramString.indexOf(“cessitant pas de r”, 0);
i += 72;
j -= 72;
String str1 = paramString.substring(i, j);
try {
String str2 = new String(str1.getBytes(“ISO-8859-15”), “UTF-8”);
System.out.println(str2);
}
catch (UnsupportedEncodingException localUnsupportedEncodingException) {
System.err.println(localUnsupportedEncodingException);
}

return 1;
}