I'm developing a Converter app.
The following lines give me a syntax error called Invalid character constant.
I don't know how to deal with it.
Any kind of help or suggestion are welcome.
public static HashMap<Character, String> UNICODE_TRANS = new HashMap<Character, String>();
static {
UNICODE_TRANS.put('÷', "/");
UNICODE_TRANS.put('×', "*");
UNICODE_TRANS.put('÷', "/");
UNICODE_TRANS.put('×', "*");
UNICODE_TRANS.put('²', "^2");
UNICODE_TRANS.put('³', "^3");
UNICODE_TRANS.put('�', "^4");
UNICODE_TRANS.put('−', "-");
UNICODE_TRANS.put('µ', "micro");
UNICODE_TRANS.put('Ï€', "pi");
UNICODE_TRANS.put('Î ', "pi");
UNICODE_TRANS.put('€', "euro");
UNICODE_TRANS.put('Â¥', "japanyen");
UNICODE_TRANS.put('₤', "greatbritainpound");
UNICODE_TRANS.put('√', "sqrt");
UNICODE_TRANS.put('∛', "cuberoot");
UNICODE_TRANS.put('½', "1|2");
UNICODE_TRANS.put('â…“', "1|3");
UNICODE_TRANS.put('â…”', "2|3");
UNICODE_TRANS.put('¼', "1|4");
UNICODE_TRANS.put('â…•', "1|5");
UNICODE_TRANS.put('â…–', "2|5");
UNICODE_TRANS.put('â…—', "3|5");
UNICODE_TRANS.put('â…™', "1|6");
UNICODE_TRANS.put('â…›', "1|8");
UNICODE_TRANS.put('⅜', "3|8");
UNICODE_TRANS.put('â…�', "5|8");
}