Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to solve problem with the encoding of Cyrillic characters

Сергей Акшенцев
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 5, 2018

Hi,
I've front problem with cyrillic characker in Confluence.
All of them is shown like this - "???". scrinshot 

My confluence version is 6.10, javac version 10.0.2

I'm use mysql and all confluence tables is in right encoding : utf_8 bin:

In my.conf I set up this params :

[mysqld]
init_connect='SET collation_connection = utf8_bin'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_bin
skip-character-set-client-handshake

I use tomcat, so in server.xml is set up :
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
proxyName="31.25.242.24" proxyPort="80"/>

And, finally, in /var/atlassian/application-data/confluence/confluence.cfg.xml
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/conlf</property>

I'm changed this string to :
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/conlf?useUnicode=true&amp;characterEncoding=utf8</property>

But, no success. Please, help.

1 answer

1 vote
Zak Laughton
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2018

Hi Сергей,

A few more ideas of things to run through here for this:

Thanks!
-Zak

Сергей Акшенцев
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2018

Zak, thank you for the reply, 

I've done all of it

mysql> SHOW VARIABLES LIKE 'character\_set\_%';
+--------------------------+--------+
| Variable_name | Value |
+--------------------------+--------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
+--------------------------+--------+
7 rows in set (0.00 sec)

 

You can see config mysql  here

I've done all of SQL request for Fix the Collation and Character Set

And I changed Java 10 to java 8

Also I've done test

Screenshot.pngBut until nothing has changed and I have ????????????

What can I do else?

Regan Gill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 14, 2019

Did you get this solved? 

Andrey Ozerov June 21, 2019

Try to add in setenv.sh:

CATALINA_OPTS="-Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8 -Dencoding=UTF-8 ${CATALINA_OPTS}"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events