Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Saving Tweets with emojis using Twitter4J in a Mysql table

Posted on 2016-10-05
2
124 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

856 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