Sauter la navigation

[Résolu] When using custom field of Type : URL, Problem recognizing Hindi characters

This support ticket is created Il y a 5 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Amr Il y a 5 années et 3 mois.

Assisté par: Shane.

Auteur
Publications
#1488945

Amr

I have a CRED form where you are expected to enter a URL. I am using the Custom filed of type URL to validate the correct URL structure. Unfortunately, the URL field does not accept URLs that contain HINDI characters. Example, If you enter the following URL :

lien caché

You get an invalid URL. Yet when you visit that URL, it is a valid one.

How can we get around that problem?

Thanks

#1489069

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Amr,

I was able to replicate the issue on a fresh install and brought it to the attention of our 2nd tier supporters.

For now I would recommend that you disable the URL validation in your custom field settings for this to work.

As soon as I get any other information on this I will let you know.

Thanks,
Shane

#1504137

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Amr,

Thank you for getting in touch.

The issue here is that our validation uses the US-ASCII Character set. . These characters include digits (0-9), letters(A-Z, a-z), and a few special characters (“-“, “.”, “_”, “~”).

Hindi is not amongst the valid character set that can be used.

What I would recommend that you do is to encode your urls with the link below and then you should be able to add it to your url custom field
lien caché

Thanks,
Shane

#1508831

Amr

My issue is resolved now. Thank you!