Garbled Special Characters in Crowd with Microsoft SQL Server

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Special Characters in languages other than English are garbled. (e.g. Chinese Special Characters) or Crowd does not support Unicode when using Microsoft SQL Server database.

Cause

Following is the default configuration of <property name="hibernate.dialect"> in <Crowd_Home>\crowd.cfg.xml during crowd installation:

<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect </property>

However as it mentioned in documentation, to support Unicode in MS SQL Server 2005 and 2008, Hibernate Dialect field on the Crowd Setup Wizard's database must set to com.atlassian.crowd.util.persistence.hibernate.SQLServerIntlDialect during installation.

Resolution

  • Shut down your Crowd

  • Go to <Crowd_Home>\crowd.cfg.xml

  • Following line appears in crowd.cfg.xml

    1 <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect </property>
  • Change above mentioned line to:

    1 <property name="hibernate.dialect">com.atlassian.crowd.util.persistence.hibernate.SQLServerIntlDialect</property>
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.