Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Saving Tweets with emojis using Twitter4J in a Mysql table

Posted on 2016-10-05
2
Medium Priority
?
305 Views
Last Modified: 2016-10-05
I have a Java application which uses Twitter4J to grab some Tweets and store them in a MySQL database.

When I output tweets to the console when running the Java application, they appear as strange characters which I am guessing is correct, just the console doesn't know how to render them. However when they're saved to the database the characters are saved as ????.

The database field is set to UTF8_bin.

I'm wondering how I can save the tweets and the emojis correctly in the mysql database?

To provide a little more information, this is for a web service which provides the tweets to a mobile application, which will be responsible for rendering the tweets.
0
Comment
Question by:SheppardDigital
  • 2
2 Comments
 

Accepted Solution

by:
SheppardDigital earned 0 total points
ID: 41829880
0
 

Author Closing Comment

by:SheppardDigital
ID: 41829882
Resolved myself
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question