Legacy Knowledge Base
Published Jul. 2, 2025

Message Boards Do Not Work On MySQL Unless Character Set is UTF-8

Written By

Michael Wine

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

When the MySQL database is using a character set that is not UTF-8 (such as Latin1), new message boards posts with special characters like the one in the below screenshot cannot be published. You will see a, Message portlet unavailable message, and the following error:

RuntimePageImpl-15][render_portlet_jsp:132] null
java.sql.SQLException: Incorrect string value: '\xEF\x83\xA0 In...' for column 'subject' at row 1
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4120)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4052)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2503) 

Resolution

Change the character set of the database to UTF-8. While this is a database operation, and not an out-of-the-box Liferay issue, here is a link that discusses how to do this.

Did this article resolve your issue ?

Legacy Knowledge Base