Welcome, Guest
Username: Password: Remember me

TOPIC: Prefilling Survey Elements with Chinese Character

Prefilling Survey Elements with Chinese Character 1 year 8 months ago #89204

  • ericleung
  • ericleung's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hi all master, I am currently trying out Prefilling Survey Elements. It works for number and English text for me :cheer: . However, once comes to Chinese Characters..... it fails :pinch: .

Can any master helps me here?
The administrator has disabled public write access.

Aw: Prefilling Survey Elements with Chinese Character 1 year 8 months ago #89311

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 467
  • Thank you received: 52
  • Karma: 16
You mean via prefilling via URL?
Can you provide an example here?

To transmit text via URL often the text needs to be encoded and decoded.

I am not sure if Limesurvey can detect that without doing the decoding/encoding via Javascript/Jquery. Modern browser to some stuff on their own. Question is, do you control the URL to fill the variables.

You can try some characters here:
www.w3schools.com/tags/ref_urlencode.asp

JavaScript:
www.w3schools.com/jsref/jsref_encodeURI.asp

Hope you get the idea.

The PHP routines are
us3.php.net/urldecode
us3.php.net/urlencode

Would be nice if a developer could comment on the handling of URL Decoding/Encoding.
E.g. for the EndURL.
Last Edit: 1 year 8 months ago by jelo.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.104 seconds
Donation Image