legacy-knowledge-base
公開されました Sep. 10, 2025

Registration of certain characters may fail.

written-by

Shimada Taro

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

Issue

  • The following error is thrown when certain characters are included in the registration of web content, notice portlets, etc.
Incorrect string value: '\xF3\xA0\x84\x80\xE9\x87...' for column 'content' at row 1

Environment

  • Liferay Portal 6.2, Liferay DXP 7.0, Liferay DXP 7.1, Liferay DXP 7.2

Resolution

  • If you are using MySQL and the charset setting is UTF-8, an error may be thrown
  • This problem occurs because MySQL UTF-8 can store up to 3 bytes and does not support characters with more than 3 bytes.
  • You need to set the charset to utf8mb4 or use a database other than MySQL
  • If you use utf8mb4, adjust the database-oriented settings defined in portal-ext.properties as follows
jdbc.default.url = jdbc: mysql: // localhost / lportal? dontTrackOpenResources = true&holdResultsOpenOverStatementClose = true&useFastDateParsing = false

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base