java - Emoji android dont current display after save in data base -


i tried save emoji in mysql data base. in android displays fine, when save emoji in data base, "????". know commons-lang-2.5.jar library, can use encode , decode emoji stringescapeutils.escapejava(string text) , stringescapeutils.unescapejava(string text).

but android , ios clients use same server, , if use commons-lang-2.5.jar on android, ios not able decode. on related note, ios saves , displays emoji fine.

if android , ios overwritten in online mode (across socket.io), android , ios clients display emoji properly, if request history chat server, emoji stored on server displayed ???, on android.

update

simple example:

comment = etxtcomment.gettext().tostring().trim();  new submitcommentsonlychat(comment).execute();   class submitcommentsonlychat extends asynctask<void, string, boolean> {            string message;            submitcommentsonlychat(string message) {               this.message = message;           } @override             protected boolean doinbackground(void... params) {                 // todo auto-generated method stub                 try {                     httpclient httpclient = new defaulthttpclient();                      httppost httppost = new httppost(                             "url"); list<namevaluepair> namevaluepairs = new arraylist<namevaluepair>(5);  namevaluepairs                             .add(new basicnamevaluepair(                                     globalconfig.chat_only_message,                                     message));                      httppost.setentity(new urlencodedformentity(namevaluepairs, "utf-8")); 


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -