View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007779 | mantisbt | localization | public | 2007-02-22 03:05 | 2010-03-20 20:31 |
| Reporter | Akiacat | Assigned To | grangeway | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.1.0a2 | ||||
| Summary | 0007779: [all lang] no upgrade path to 1.10 for non-latin characters | ||||
| Description | Umlauts are not correctly converted into UTF-8 characters during an upgrade from 1.0.4 (possibly all 1.0.x versions are affected) to 1.1.0a2. The result is non-readable text/scrambled umlauts for users after the upgrade. ... The same for all other languages - help with upgrade code is appreciated. | ||||
| Tags | No tags attached. | ||||
|
This can be temporarily fixed during an upgrade by the following steps:
|
|
|
I think you should set the target version "1.1.0" for this entry to remember fixing the upgrade procedure before shipping the first official 1.1.x release. |
|
|
There is a simpler way to convert the database encoding using the mysql tools, you don't need 'iconv'. Just set the character set to UTF-8 when dumping the previous database using: mysql -uUSER -pPASSWORD INSTANCE --default-character-set=utf8 > mantis-db.sql And you will get a dump file encoded in UTF-8. After setting up the new database with default character set utf8 you can import this sql script to create the new database schema. But the main problem I had after upgrading to Mantis 1.1.0a3 was that decribed in 0006782: The PHP database connection has to be changed using the statement "set names utf8" into utf8 mode in order to correctly transfer all strings from/to the database. |
|
|
Thanks Akiacat and Martin for sharing your upgrade tips. This is really helpful. Sometime ago I've created a Wiki page that includes some hints from a message sent on the mailing list. Maybe you guys can help with editing it to include your tips. http://www.mantisbt.org/wiki/doku.php/mantisbt:upgrade_to_utf8 |
|
|
OK, I included the conversion examples from here under the "expert users" section into the Wiki page. |
|
|
Let's describe the situation before an pending upgrade: 1.) There is no need to change anything in the string encoding. This might 2.) Strings have been previously stored using another encoding like e.g. 3.) If one of the previous 1.1.x-alpha versions has been used to setup So all we have to do is support the upgrading user with an utility to handle Now to my proposal for the new upgrade utility: A.) Backup the database B.) Restore the database C.) Encode to UTF-8 Before actually executing the command we should print out a warning message: D.) Encode from UTF-8 Optionally we could allow to specify another character set for the dump file |
|
|
Paul, will your work on the database model (conversion?) be of any help here, or must the manual procedure be followed? Please take the bug, or close it, because manual steps have been described. |
|
|
Yes it takes some manual steps, but it is possible. So this is not considered a bug. |
|