Prefilling Survey Elements with Chinese Character

More
4 years 4 months ago #89204 by ericleung
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?

Please Log in to join the conversation.

More
4 years 4 months ago - 4 years 4 months ago #89311 by jelo
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: 4 years 4 months ago by jelo.

Please Log in to join the conversation.