'java.sql.SQLException: Incorrect string value: '\xAC\xED\x00\x05sr...'
I have code looking like that:
@Column(name = COLUMN_DESCRIPTION, columnDefinition = "LONGTEXT")
private Map<Locale, String> description = new HashMap<>();
after trying to add something to column i got
java.sql.SQLException: Incorrect string value: '\xAC\xED\x00\x05sr...' for column 'description' at row 1
Where's the problem?
Solution 1:[1]
Surely it is a MYSQL Bug ... More can be seen at http://bugs.mysql.com/bug.php?id=59456
Solution 2:[2]
It is not necessary a bug. You may try store this object as a blob. Which is a data type in e.g. mysql
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Anurag Shukla |
| Solution 2 | wwww |
