View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13904 | Bug reports | Survey editing | public | 2018-07-25 07:24 | 2019-05-29 16:39 |
Reporter | efingdmi | Assigned To | c_schmitz | ||
Priority | high | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.13.x | ||||
Fixed in Version | 3.17.x | ||||
Summary | 13904: Japanese characters get replaced with '?' | ||||
Description | Settings -> Text elements (Welcome message, Description, End, Privacy...) If I enter a japanese text here, it will be replaced with a lot of questionmarks. This happens only in the editor windows on this page. Everything is fine e.g. when creating questions. | ||||
Steps To Reproduce | Settings -> Text elements (Welcome message, Description, End, Privacy...) -> enter japanese characters | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 24 | ||||
Complete LimeSurvey version number (& build) | 3.13.2+180709 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | FF, Chrome | ||||
Database type & version | MS SQL Server 2012 | ||||
Server OS (if known) | Windows Server 2012 R2 64Bit | ||||
Webserver software & version (if known) | Apache Apache 2.4.33 (64bit) | ||||
PHP Version | PHP 7.2.6 (64bit) | ||||
This also occurs if someone answers in Japanese. So the results are not usable :( |
|
Have you used the language before with this installation of LimeSurvey? Did I get it right. The Umfragetitel is always shown correctly? Any other fields, which are showing the correct content after saving the form? Apache and PHP are running on Windows, right? |
|
No it was the first time we tried Japanese characters. Maybe some probem with mssql? I had no chance to test it with mysql, sorry :( |
|
Can you check what admin theme is set? Configuration -> Themes -> Admin themes. There is a admin theme To me it looks more like an issue which LS only has when interacting with MS SQL. |
|
I will try. |
|
No change when switching to the NOTO default template. Version 2.62.2+170203 is working perfect in the same database. Even with the SeaGreen template. Maybe this helps. |
|
markus, I'd like your point of view on this problem |
|
anything I could do to help here? |
|
still nothing? I searched a lot, compared it with 2.62.2 but I did not find the solution :( |
|
Surely related to DB (MS SQL Server 2016) and maybe Server OS (Windows Server 2012 R2 64Bit) We already use nvarchar and ntext for MSSQL :https://stackoverflow.com/a/22955415/2239406 About the "how to find when this issue happen" Until find the broken release. |
|
Hi, and thanks for the reply. Just to clarify: I should set up a secound system again (2.62) and upgrade it step by step? Then I will try it :) |
|
Can not reproduce on 3.15.5 version on Windows server 2016 (IIS) + php 7.2.9 + sqlsrv + msodbcsql17.dll + SQLServer 12.00.5590 |
|
I will try this asap :) |
|
stil the same :( |
|
It is working in 2.27.3, but not in 3.x Difference I found in application\core\db\MssqlSchema,php |
|
Both versions have the line: $this->columnTypes['text'] = 'nvarchar(max)'; |
|
This part : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/db/MssqlSchema.php#L50-L66 Here is the same function used in 2.73 : https://github.com/SondagesPro/LimeSurvey-SondagesPro/blob/2.73/framework/db/schema/CDbSchema.php#L371-L383 It's seems to update ONLY for pk, then in think it's a difference in your MSSQL server |
|
hmm true. Can't find a difference. I'm using the same databse for the two versions, also the same settings. |
|
Is the database collation the same? |
|
And this line : https://github.com/LimeSurvey/LimeSurvey/blob/b96ff7cba0ecff5b80a912f762903bc12c6c4ce0/application/core/db/MssqlSchema.php#L19 or https://github.com/LimeSurvey/LimeSurvey/blob/b96ff7cba0ecff5b80a912f762903bc12c6c4ce0/application/core/db/MssqlSchema.php#L11 |
|
|
|
it is a MS SQL Server 2012, can't change it in the Bug report |
|
Will be fixed in next version. Existing databases will be automatically updated to fix the issue. |
|
awesome news, thank you so much |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=28883 |
|
Version 3.17.4+190529 released |
|
LimeSurvey: master 64ba8d40 2019-05-23 14:01 Details Diff |
Fixed issue 13904: UTF-8 characters not correctly saved in survey texts when using MSSQL DB |
Affected Issues 13904 |
|
mod - application/config/version.php | Diff File | ||
mod - application/helpers/update/updatedb_helper.php | Diff File | ||
mod - installer/create-database.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-07-25 07:24 | efingdmi | New Issue | |
2018-07-25 07:24 | efingdmi | File Added: before.png | |
2018-07-25 07:24 | efingdmi | File Added: after.png | |
2018-07-25 07:24 | efingdmi | File Added: questions.png | |
2018-07-25 07:24 | efingdmi | File Added: limesurvey_survey_116537.lss | |
2018-08-20 09:41 | efingdmi | Note Added: 48823 | |
2018-08-22 12:26 |
|
Priority | none => high |
2018-08-22 12:26 |
|
Severity | minor => partial_block |
2018-08-22 13:29 | jelo | Relationship added | related to 13989 |
2018-08-22 14:43 | jelo | Note Added: 48853 | |
2018-08-23 08:07 | efingdmi | Note Added: 48857 | |
2018-08-23 09:59 | jelo | Note Added: 48859 | |
2018-08-23 10:39 | efingdmi | Note Added: 48861 | |
2018-08-23 10:44 | efingdmi | Note Added: 48862 | |
2018-08-28 11:21 |
|
Assigned To | => markusfluer |
2018-08-28 11:21 |
|
Status | new => assigned |
2018-08-28 11:21 |
|
Note Added: 48888 | |
2018-09-10 13:49 | efingdmi | Note Added: 48999 | |
2018-11-30 14:45 | efingdmi | Note Added: 49856 | |
2018-12-01 10:08 | DenisChenu | Issue Monitored: DenisChenu | |
2018-12-18 00:33 | DenisChenu | Note Added: 49980 | |
2018-12-18 14:05 | efingdmi | Note Added: 49986 | |
2019-01-09 12:04 | DenisChenu | Note Added: 50132 | |
2019-01-15 10:21 | efingdmi | Note Added: 50206 | |
2019-01-21 13:13 | efingdmi | File Added: japanese.png | |
2019-01-21 13:13 | efingdmi | Note Added: 50286 | |
2019-02-12 17:37 | efingdmi | Note Added: 50533 | |
2019-02-12 17:46 | efingdmi | Note Added: 50535 | |
2019-02-13 09:36 | DenisChenu | Note Added: 50537 | |
2019-02-13 09:55 | efingdmi | Note Added: 50540 | |
2019-02-15 13:45 |
|
Note Added: 50568 | |
2019-02-15 16:43 | DenisChenu | Note Added: 50577 | |
2019-02-17 12:05 | efingdmi | Note Added: 50588 | |
2019-02-18 15:39 | efingdmi | Note Added: 50608 | |
2019-02-18 16:01 | DenisChenu | Database & DB-Version | MS SQL Server 2016 => MS SQL Server 2012 |
2019-02-19 09:28 | DenisChenu | Relationship added | related to 14545 |
2019-05-23 12:26 | c_schmitz | Relationship added | has duplicate 14063 |
2019-05-23 12:26 | c_schmitz | Assigned To | markusfluer => c_schmitz |
2019-05-23 12:28 | c_schmitz | Status | assigned => resolved |
2019-05-23 12:28 | c_schmitz | Resolution | open => fixed |
2019-05-23 12:28 | c_schmitz | Fixed in Version | => 3.17.x |
2019-05-23 12:28 | c_schmitz | Note Added: 52070 | |
2019-05-23 15:09 | efingdmi | Note Added: 52082 | |
2019-05-29 16:12 | c_schmitz | Changeset attached | => LimeSurvey master 64ba8d40 |
2019-05-29 16:12 | c_schmitz | Note Added: 52172 | |
2019-05-29 16:39 | c_schmitz | Note Added: 52232 | |
2019-05-29 16:39 | c_schmitz | Status | resolved => closed |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |
2021-08-02 21:32 | guest | Bug heat | 20 => 24 |