Framework
AngularJs
Database
MySQL
Backend
Jboss
Error
My app has a <textarea></textarea>
for comments from user. AngularJs gets the comment and saves it to MySQL DB. The problem that I am facing is whenever I try to send any emoticons in the text-area, It gets converted to special characters and square boxes with numbers in it.
These are the list of things I tried and failed,
- Checked my database conf file and made sure that the charset is
utf8mb4
on both client and server side
- I have changed the Header of post request to
ContentType:application/json
Since I have just been introduced to JBoss, Java and MySQL, please let me know If I missed something.
I cannot post the code because it's really large and I am not looking for the exact answer, just some area where I could look into.
I don't think the problem is in Angular part because it is sending the emoticons correctly (please correct me if I am wrong) as can be seen on the console.
UPDATE
Details of my MySQL table:
Screen of one of the comments in db.
Thanks for the help.