Chinese characters appears as question marks

Still need help?

The Atlassian Community is here for you.

Ask the community

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

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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

Problem

Adding Chinese characters into a Confluence page and saving shows the characters as question marks.

Diagnosis

Environment

  • Usually in Microsoft SQLServer
  • Characters also appear as question marks in the database


Example

If you have a page with the title: 'chinesecharacters 象形字', check what are the characters saved as in the database by using the following query:


SELECT * FROM CONTENT WHERE TITLE LIKE 'chinesecharacters%'



If this is not the case, this KB will not be applicable for you.


Cause

This behaviour happens on Microsoft SQLServer when you have a incorrect data type as the jdts driver has problems with multi-byte characters. 

Resolution

Please backup your database before you do the following.

  1. Shutdown Confluence.
  2. In SQLServer Studio go to Tools > Options> Designer > Table and Database Designers > Uncheck the box Prevent saving changes that require table re-creation.
  3. Expand Body Content table.
  4. Expand Columns.
  5. Right click on BODY column
  6. Modify
  7. Change the BODY column from text to ntext.
  8. Save.
  9. Start Confluence.


Last modified on Jan 15, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.