Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Disappearing characters?

Disappearing characters? 4 years 5 months ago #64500

  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 917
  • Thank you received: 131
  • Karma: 96
I think it is a bug with a particular PHP version. I cannot reproduce the issue here on various OSs.

bugs.limesurvey.org/view.php?id=5389

Add your PHP version and see if there is a similarity.
Best regards

Carsten Schmitz
LimeSurvey project leader
The administrator has disabled public write access.

Disappearing characters? 4 years 5 months ago #64501

  • steverubin
  • steverubin's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi,

My PHP version is 5.2.17 (Heart Internet hosting)

Thanks for submitting the bug.

Steve
Last Edit: 4 years 5 months ago by steverubin.
The administrator has disabled public write access.

Disappearing characters? 4 years 5 months ago #64502

  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 917
  • Thank you received: 131
  • Karma: 96
Ok, try the following:

Open common_functions.php


Go to line 4383 (around there)
and replace this line
$sNicetext = preg_replace('/\v/u', '', $sNicetext);

with
        $sNicetext = preg_replace('/[\x0a\x0b\x0c\x0d\x85\x2028\x2029]/u', '', $sNicetext);

Let me know if that helped.
Best regards

Carsten Schmitz
LimeSurvey project leader
The administrator has disabled public write access.

Disappearing characters? 4 years 5 months ago #64504

  • markbegbie
  • markbegbie's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
We rolled back to Version 1.91+ Build 10315 and do not have the vanishing v problem. It appeared when we upgraded and disappeared when we rolled back (about 10 minutes later!).
aruether wrote:
Yes, we have the same problem as well using English. Version 1.91+ Build 10647.

Can anyone recommend an earlier release that does not have this problem? We are upgrading from 1.86 and the improvements for 1.91 are great!

- Andrew
The administrator has disabled public write access.

Disappearing characters? 4 years 5 months ago #64506

  • aruether
  • aruether's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
$sNicetext = preg_replace('/[\x0a\x0b\x0c\x0d\x85\x2028\x2029]/u', '', $sNicetext);

The proposed fix shows the letter v, but removes spaces in survey names, user name, description, etc.

I added a space between the two single quotes (i.e. change: '' to: ' ') and that seemed to work.
Last Edit: 4 years 5 months ago by aruether. Reason: Updated information.
The administrator has disabled public write access.

Disappearing characters? 4 years 5 months ago #64507

  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 917
  • Thank you received: 131
  • Karma: 96
Ok, please use
$sNicetext = preg_replace('/[\x0a\x0b\x0c\x0d\x85\x2028\x2029]/u', ' ', $sNicetext); 
 

then. (note the additional space)
Best regards

Carsten Schmitz
LimeSurvey project leader
Last Edit: 4 years 5 months ago by c_schmitz.
The administrator has disabled public write access.

Disappearing characters? 4 years 5 months ago #64508

  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 917
  • Thank you received: 131
  • Karma: 96
Or you just update to the latest version using the ComfortUpdater.
Best regards

Carsten Schmitz
LimeSurvey project leader
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.461 seconds