Emojicons Send face icons not work, send number ic

2019-09-01 11:13发布

When I send emojis nums icons, 1,2,3,4,5.... send correctly, But when I try send emojis icons how smile or others ... not send nothing ...

My debug show a face smile, but not send. why ? then seems to not clean the buffer, and when you rewrite, the activity is closed, but not when using numbers icons emojis.

The listener not called, when I use icons fases, but yes when I use icons numbers.

enter image description here

public void sendMessageServer()throws XMPPException{
        Message msg= new Message();
        String tim =  "            "+time;
        Chat chat = chatManager.createChat(CurrentUsernameClick+"@delive", messageListener);
        if(message_list.getText().toString()!=null && message_list.length()>0){
            String text = message_list.getText().toString();
            msg.setBody(message_list.getText().toString() +tim);
            chat.sendMessage(message_list.getText().toString() + tim);
            addNewMessage(new Messages(msg.getBody(), true));
            UserDataAccesObject.createMessage(id, id, msg.getBody(), usernameSession, CurrentUsernameClick, time);
            message_list.setText("");
        }
    }

DEBUG SHOW :

enter image description here enter image description here I send correctly numbers, but smiles face not.

http://apps.timwhitlock.info/emoji/tables/unicode

I have 2 ideas : 1 (orc) 2 (ASCII)

1 -

I think that I need recognize characters not? with library OCR not ?

in my debugger, show [?] with icons, I think that is because not recognize character correctly, or am I wrong?

2 -

Or can be ASCII ?

2条回答
相关推荐>>
2楼-- · 2019-09-01 11:32

Send smile using htmlescape using apache common util lib it works for me

查看更多
Juvenile、少年°
3楼-- · 2019-09-01 11:34

Try showing the hex values of the characters in your strings. You may find that the first one shows 0x0031 (DIGIT ONE) and 0x20DE (COMBINING ENCLOSING SQUARE), which are two Unicode code points that combine together to make "1⃞". The second one may show 0xD83D 0xDE03, which is UTF-16 for a single Unicode character "

查看更多
登录 后发表回答