View Issue Details

IDProjectCategoryView StatusLast Update
0009216mantisbtlocalizationpublic2013-09-21 11:03
Reporterkinguru Assigned Tosiebrand  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformAMD 64 opteronOSFedora CoreOS Version8
Product Version1.1.1 
Fixed in Version1.2.0a3 
Summary0009216: Problems with Russian language
Description

If i write news in russina language like '??????', which means 'Hello' in english it is appears like '??????' on main page.

I think this is problem with mysql connection charset or storing mysql data not in utf8.

Steps To Reproduce
  1. write new 'news' in russian language, f.e. '??????'.
  2. Go to main page, and see '??????' but not '??????'.
TagsNo tags attached.
Attached Files
Untitled-1.jpg (57,530 bytes)   
Untitled-1.jpg (57,530 bytes)   

Relationships

has duplicate 0008763 closedsiebrand Russian characters not shown correctly 
related to 0009217 closedsiebrand Can't create CATEGORY in russian language 

Activities

kinguru

kinguru

2008-06-10 15:59

reporter   ~0018053

this issue can be fixed by setting right collation for tables and columns - to utf8_unicode

VYu

VYu

2008-07-11 10:50

reporter   ~0018367

kinguru,

MySql manual says that collation is about comparing strings and so... Are you sure it can affect on how Mantis shows strings from database?

vboctor

vboctor

2008-07-12 02:12

manager   ~0018376

VYu, did you get the issue resolved on your bug tracker?

VYu

VYu

2008-07-14 05:36

reporter   ~0018495

vboctor,

no, sorry, I have found finally that my problem is other than reported here by kinguru. My problem was that after upgrading from 1.0.6 (but with utf-8 database already) to 1.1.2 Mantis shows russian content with strange chars (2 strange symbols per 1 russian original), and I have solved it according to recipe from http://www.mantisbt.org/forums/viewtopic.php?f=3&t=4467&p=11426 by exporting database to sql-file, replacing SET NAMES latin1 to SET NAMES utf8 and importing data back.

vboctor

vboctor

2008-07-24 14:15

manager   ~0018663

Marked as confirmed, since we seem to have a similar issue with our bug tracker.

klimrmad

klimrmad

2008-10-08 06:20

reporter   ~0019516

Why issue 8763 was closed? 8763 is not duplicate.
Here - string from MySql. There - string from string_russian.txt.
*.txt has no relation to MySQL and can not be fixed by MySQL collation.

VYu

VYu

2008-10-08 09:44

reporter   ~0019520

I'm agree with klimrmad. 0008763 is not duplicate of this issue.

Speakus

Speakus

2008-12-13 18:19

reporter   ~0020370

Last edited: 2009-01-11 14:15

I don't know about this issue, but i know what i have not problem with see russian letters on anywhere in my mantis. I start use mantis before 1.1.1 version ...
If some additional information about my configuration required - i can get it.

P.S. ????

P.P.S I saw that my mantis databases use cp1251 collation - may be it will be better use utf8. But i have not problem cause i use only english and russian language.

Speakus

Speakus

2008-12-13 18:21

reporter   ~0020371

hm... - on my P.S. i wrote word "test" in russian language ;)

Kirill

Kirill

2008-12-14 09:52

reporter   ~0020372

Speakus, ? ????????? Mantis ? ?????? 1.0.1, ????? ???? ?????? ???? latin ? ????????? ????? ???? win1251. ?????? ????? ?????, ? ???????? ???? ????? ;)

Speakus, I'm use Mantis from version 1.0.1, when db's charset latin and russian language - win1251. But now I use 1.1.6 with db utf8-general_ci and language utf-8 - problems new ;)

siebrand

siebrand

2009-01-05 11:05

developer   ~0020539

Please test with Mantis 1.2.0a2 or later with a UTF-8 database and a UTF-8 localisation. This issue should be resolved.

Kirill

Kirill

2009-01-05 11:38

reporter   ~0020540

Who made russian translation?
Can I translate too?

siebrand

siebrand

2009-01-05 12:22

developer   ~0020541

Of course. Please use the translation interface at http://translatewiki.net. Russian currently has 6[1] untranslated messages. Just register/create an account, follow instructions on how to get translator rights, and use [1] to update your translations.

[1] http://translatewiki.net/w/i.php?title=Special:Translate&group=out-mantis&language=ru

xdmitry

xdmitry

2009-01-27 11:31

reporter   ~0020726

In order to solve this issue for my mantis I've exported it's database, replaced latin1 with utf8 and imported it back. I think mantis should have mysql/postgres charset selection in installation script

sirshurf

sirshurf

2009-06-13 11:53

reporter   ~0022153

I have changed line 592 to:

$sqlarray = $dict->CreateDatabase( $f_database_name,array("MYSQL"=>"CHARACTER SET utf8 COLLATE utf8_general_ci") );

Since then any installation on a NONE UTF default database is correct...

dhx

dhx

2009-06-23 07:32

reporter   ~0022238

There is no need to specify COLLATE utf8_general_ci because that is the default setting MySQL uses anyway. See http://dev.mysql.com/doc/refman/5.0/en/charset-unicode-sets.html

What version of MySQL are you using?

Can you please type from the command line (ssh):

mysql -h your.database.server -u adminuser -p

show create database bugtracker;

Where your.database.server is the hostname of your MySQL server. adminuser is a MySQL user that has permission to create/show databases. It'll ask for the password for adminuser as well. bugtracker is the name of your Mantis database on the MySQL server.

Let me know what the result is. It should tell you what the character set on the Mantis database is.

sirshurf

sirshurf

2009-06-23 08:03

reporter   ~0022239

I will explane why it is needed.

For the past month I have made a few installation of VANILA Zend Core + MySQL.

I am talking about a standart installations of without setting's changed.

What I have seen is that, on PC's that have Windows installed in a local settings (in my cases in Hebrew, dont thy that at home... it's sucks), the default database collation is hebrew_general_ci, and not UTF8 (as you would expect).

That is teh reasone I think the COLLATE MAST be set (at least for MySQL, I have not tested on other's).

I will post the -h info when I get to a PC that I can perform this installation.

dhx

dhx

2009-06-23 08:12

reporter   ~0022240

OK thanks for the explanation, I'll fix it. I was just going on what I had read from the documentation. It doesn't hurt to specify the collation :)

On Hebrew language support, did you read the comment at the bottom of http://dev.mysql.com/doc/refman/5.0/en/charset-unicode-sets.html

sirshurf

sirshurf

2009-06-23 08:17

reporter   ~0022241

Yes I did... :)

But I would really like to see the user who would use Nikkud in typings ;)

Related Changesets

MantisBT: master 65f51280

2009-06-23 09:47

dhx


Details Diff
Fix 0009216: Specify MySQL collation utf8_general_ci

Don't rely on the default MySQL collation on the installation system.
Force use of utf8_general_ci if the user hasn't specified their own
collation when manually creating their Mantis database.
Affected Issues
0009216
mod - admin/install.php Diff File