legacy-knowledge-base
公開されました Jul. 2, 2025

文字セットがUTF-8でない場合、MySQLでメッセージボードが動作しない。

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

learn-legacy-article-disclaimer-text

MySQLデータベースがUTF-8以外の文字セット(Latin1など)を使用している場合、以下のスクリーンショットのような特殊文字を含む新しいメッセージボードの投稿を公開することができません。 Message portlet unavailable メッセージが表示され、以下のエラーが表示されます:

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) 

解像度

データベースの文字コードをUTF-8に変更する。 これはデータベースの操作であり、Liferayのすぐに使える問題ではありませんが、 ここ は、この方法を論じたリンクです。

did-this-article-resolve-your-issue

legacy-knowledge-base