Originally Posted by
mige5
If I test that like this, its not working?
Code:
String s = "testing()";
System.out.println("test: "+getFormatedMessage(s).toString());
EDIT: prints the string if I change it to this... but its the same string, it hasnt replaced the symbols with something else...
Code:
String s = "testing()";
System.out.println("test: "+new String(getFormatedMessage(s)));
Nevermind. I was wrong, these are the "speical characters" which will be replaced:
Code:
private static char[] SPECIAL_CHARACTERS = {'€', '\0', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', '\0', 'Ž', '\0', '\0', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', '\0', 'ž', 'Ÿ'};
Looks like "(" and ")" are not special characters. What will show up when writing "(" and ")"? Also, what revision are you working in?