Skip to content

Issue with non ascii & logging on signs #826

@groovyloopylou

Description

@groovyloopylou

when using characters such as 💢, it throws this console error & doesn't log
tested in chat and on anvil and no errors on those using the same example given and logs as expected.

[22:12:38 INFO]: [GriefPrevention] groovyloopylou placed a sign @ world: x2472, z25480;💢
[22:12:38 WARN]: java.sql.BatchUpdateException: Data truncation: Incorrect string value: '\xF0\x9F\x92\xA2' for column `minecraft_red`.`co_sign`.`line_4` at row 2
[22:12:38 WARN]:        at com.mysql.cj.jdbc.exceptions.SQLError.createBatchUpdateException(SQLError.java:214)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchWithMultiValuesClause(ClientPreparedStatement.java:782)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchInternal(ClientPreparedStatement.java:456)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.StatementImpl.executeBatch(StatementImpl.java:858)
[22:12:38 WARN]:        at CoreProtect 23.3.jar//net.coreprotect.hikari.pool.ProxyStatement.executeBatch(ProxyStatement.java:127)
[22:12:38 WARN]:        at CoreProtect 23.3.jar//net.coreprotect.hikari.pool.HikariProxyPreparedStatement.executeBatch(HikariProxyPreparedStatement.java)
[22:12:38 WARN]:        at CoreProtect 23.3.jar//net.coreprotect.consumer.process.Process.commit(Process.java:292)
[22:12:38 WARN]:        at CoreProtect 23.3.jar//net.coreprotect.consumer.process.Process.processConsumer(Process.java:258)
[22:12:38 WARN]:        at CoreProtect 23.3.jar//net.coreprotect.consumer.Consumer.run(Consumer.java:133)
[22:12:38 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1583)
[22:12:38 WARN]: Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect string value: '\xF0\x9F\x92\xA2' for column `minecraft_red`.`co_sign`.`line_4` at row 2
[22:12:38 WARN]:        at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:96)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:613)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:320)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1166)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1101)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1448)
[22:12:38 WARN]:        at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchWithMultiValuesClause(ClientPreparedStatement.java:743)
[22:12:38 WARN]:        ... 8 more

Server info:
[22:18:51 INFO]: This server is running UniverseSpigot version 1.21.8-ver/1.21.8-stable@26b68a7 (2025-11-14T07:03:47Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT)
UniverseSpigot-1.21.8-26b68a7 (MC: 1.21.8)
Version: CoreProtect v23.3
Database: Using MySQL. (Initial DB: 18.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions