In the database, I have a field storing the string values in the Bulgarian language.
jdbc.url=jdbc:mysql://128.0.0.1:3303/databaseName?useUnicode=true&characterEncoding=UTF-8
My table definition:
CREATE TABLE category (
cat_id int(11) NOT NULL AUTO_INCREMENT,
cat_name varchar(50) NOT NULL,
cat_display_name varchar(50) NOT NULL,
cat_parent_id int(10) unsigned DEFAULT NULL,
CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
service_id int(10) unsigned DEFAULT NULL,
PRIMARY KEY (cat_id),
KEY fk_category_service_id (service_id),
CONSTRAINT fk_category_service_id FOREIGN KEY (service_id)
REFERENCES services (service_id)
ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8
Now, when I'm displaying the values on webview, the characters from database appears like ??????
On Java console as well the characters appear as '?????'.
Any suggestions on how to read the Bulgarian String in the right manner from MySQL?