Connector/J query JSON Type as String using character-set iso-8859-1?
Posted by: John Zhou
Date: January 25, 2016 04:12AM

The mysql json data type after 5.7.8 is great, but when I select the json column from java, it's not utf8mb4 what I want, it's always iso-8859-1.I must convert it to utf8 by
new String(origin.getBytes("iso-8859-1"), UTF8);
But the data from terminal not using connector/J is right.

Options: ReplyQuote


Subject
Written By
Posted
Connector/J query JSON Type as String using character-set iso-8859-1?
January 25, 2016 04:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.