Unable to search knowledge articles for non-latin words in the Customer Portal

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Problem

After connecting Service Management to Confluence and setting up a knowledge based article, users are able to search for Confluence articles directly in the Customer Portal. Searching for Latin characters work fine but searching for non-Latin characters doesn't work.

For example, Customer Portal will not find any articles with the words тест and δοκιμή

Cause

Both useBodyEncodingForURI="true" and URIEncoding="UTF-8" are applied in same connector in the server.xml

These are not meant to be used together as per the explanation in https://tomcat.apache.org/tomcat-7.0-doc/config/http.html for useBodyEncodingForURI

 

Notes: 1) This setting is applied only to the query string of a request. Unlike URIEncoding it does not affect the path portion of a request URI. 2) If request character encoding is not known (is not provided by a browser and is not set by SetCharacterEncodingFilter or a similar filter using Request.setCharacterEncoding method), the default encoding is always "ISO-8859-1". The URIEncoding setting has no effect on this default.

 

 

Resolution

  1. Remove useBodyEncodingForURI="true" from the server.xml of both Jira and Confluence
  2. Restart both Jira and Confluence

 

Last modified on Nov 23, 2020

Was this helpful?

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