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

TOPIC: Disappearing characters?

Re: Disappearing characters? 2 years 11 months ago #64500

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 748
  • Thank you received: 103
  • Karma: 87
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.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.

Re: Disappearing characters? 2 years 11 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: 2 years 11 months ago by steverubin.
The administrator has disabled public write access.

Re: Disappearing characters? 2 years 11 months ago #64502

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 748
  • Thank you received: 103
  • Karma: 87
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.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.

Re: Disappearing characters? 2 years 11 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.

Re: Disappearing characters? 2 years 11 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: 2 years 11 months ago by aruether. Reason: Updated information.
The administrator has disabled public write access.

Re: Disappearing characters? 2 years 11 months ago #64507

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

then. (note the additional space)
Support us, too. Donate to the LimeSurvey project and help keep us going!
Last Edit: 2 years 11 months ago by c_schmitz.
The administrator has disabled public write access.

Re: Disappearing characters? 2 years 11 months ago #64508

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 748
  • Thank you received: 103
  • Karma: 87
Or you just update to the latest version using the ComfortUpdater.
Support us, too. Donate to the LimeSurvey project and help keep us going!
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.293 seconds
Donation Image