Legacy Knowledge Base
Published Sep. 10, 2025

What collation can I use to set up Liferay with SQL Server?

Written By

Tímea Bihari

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.

Issue

  • Liferay recommends that the database should be encoded with the character set UTF-8 to display all of its supported character sets (Preparing a Database)
  • Explicit UTF-8 collation within SQL Server has been introduced with SQL Server 2019 only

Environment

  • Liferay DXP 7.0+

Resolution

  • In regards to SQL Server 2017 and below, the support of UTF-8 characters comes from using their Unicode data types.
  • Liferay can utilize SQL Server's Unicode data types to handle UTF-8 data.
  • Liferay mainly uses the Unicode data type: NVARCHAR when SQL Server is used.
  • Using SQL Server's Unicode data types should satisfy Liferay's needs, regarding UTF-8 support.

 

Did this article resolve your issue ?

Legacy Knowledge Base