The apostrophes are missing in the links

Hello,
I run into a problem with the metadata of the links of my dynampic pages : they do not accept the apostrophes, and simply delete it.

The dynamic pages are set to use a text (not rich) in a database (which contains apostrophes).

I’m French, and no apostrophes in the French are very annoying.

Try this link: https://www.vudecypres.com/album/la-creuse-un-monde-a-part
Here is the Facebook Debugger report :

If someone can help me, it would be great and kind !
Best regards,
Vincent Gardet

Hi,

You need to escape and unescape your strings.
I suggest reading a bit about how to do that. Start here .

Liran.

Thank you Liran Kurtz !
Following the documentation I have read, I inserted quotation marks (") at the begining and at the end of the description, and it worked !
However, I found out that in titles of the links, it doesn’t work with this method, or anything else. Do you have any tricks on how to do this ?
The link is : https://www.vudecypres.com/album/20-mille-lieues-sous-l-hiver

Hi Gardet. That is ‘common’. Web browsers are not capable of interpreting certain text characters correctly, such as spaces, quotation marks and apostrophes. That is why in urls you’ll see e.g. %20 for a space. WIX converts space to something else. I am very familiar with french ‘issues’, not only in url’s.

So even if you would escape it, in a url it wont work. I think what WIX does here is perfect instead of ‘unfriendly’ %20. If you want to use a aprostrophe in an url, you’ld have to use %27

What are you trying to achive with a aprostrophe, except the right spelling, in an URL?

I am very happy with Wix, and I would not switch to another way of editing my website.
Your answer is an example of why I chose Wix the first time.

However, I do not want an apostrophe in the URL, but in the title of the link when I share it on Facebook for exemple. Here is the problem :


The “title” of the link is “20 mille lieues sous lhiver” instead of “20 mille lieues sous l hiver”, and this is the problem.

I tried the solution with the %27, but it doesn’t work :


Do you have another solution ?
Thanks for taking your time with my problem.

It appears in the tab too :

Oh that I understand. I read in the docs somewhere the scrape info facebook uses can be changed. It’s in metatags. lets see if I can find it

Thanks Edgar !
It appears in Firefox and Chrome too !

Ah I saw it under manage site. But I don’t know if it’s fast enough. I have seen frameworks with dynamic data not load meta tags fast enough for the facebook scrapper. HERE you can see exactly what facebook sees and says what og metatags have what. Maybe a WIX person can help saying where to change what.

Oh yes, I know this tool and I use it to check my links.
Here is what the report says :

20 mille lieues sous lhiver | Vu de cyprès %27
  1. sync.png
retour

Les photos de vudecyprès sont protégées.

Envie d'un tirage ? Prenez contact avec moi ici.

20 mille lieues sous l'hiver

2-3/12/2017

Date icône icon
Lieu icône place icon
Appareil photo icône camera icon

À 20 mille lieues d'ici

Et c’est enfin l’hiver. J’attendais avec beaucoup de hâte cette période où on s’emmitoufle dans ses couvertures, au coin du feu, où on met ses gros vêtements bien chauds, où on aime entendre le bruit familier de la neige ou le craquement délicieux de la flaque glacée qui vient de se briser sous notre poids.

Hélàs, cette année, l’hiver a décidé de prendre ses quartiers en Amérique. De ce côté de l’Atlantique, point de tempête de froid, point de stalactites, point de bout du nez tout rouge.

Imaginez mon excitation lorsque les météorologues ont enfin prévu enfin des températures négatives, qui sont de surcroît bien arrivées ! À peine le jour levé, j’ouvre un œil, puis j’en ouvre deux, et découvre enfin ce que j’attendais : un paysage blanchi par le gel. Ni une, ni deux, me voilà déjà au bord de l’étang.

L’hiver me ravit enfin de son atmosphère si calme et si froide. Baigné d’une lumière chaude et délicate, l’étang partiellement gelé semble complètement différent. La pâquerette se pare d’une élégante robe de cristaux alors que la glace borde l’eau avec de jolies courbes raffinées, sur lesquelles viennent se refléter quelques rayons de soleil aux reflets dorés. Tout semble silencieux, endormi, seuls les oiseaux brisent le silence de leur chant mélodieux.

Nikon D5300

Hello ! Sorry to ask this, but is there sombody who can help ?
Have a great day !
Vincent

In fact, the lik has exired, it is now https://www.vudecypres.com/album/20-mille-lieues-sous-l-hiver !
Thanks for help !
(Sorry, I am continuously working on it while I wait for a fix or a help to not loose time)

Hi Gardet.
As you stated yourself, the issue is it’s missing in the e.g. facebook title and not in the url. So this means it’s missing in the “og” tags. Personally, I say that is something else then missing in the links. Now in php your solution would be:

 $data = '<meta property="og:title" content="'. htmlspecialchars($object -> title). '"/>' ."\n"; 

I don’t know how this works in the WIX meta tags. Did you already try changing a meta tag to see if actually works per default? You can add meta tags somewhere in you site management dashboard. A tip, a quote symbol ( " ) doesn’t work in og:title. Read here for that. If you scrape that url in facebook debugger you won’t see a quote in the title. That doesn’t mean an apostrophe doesn’t work, but be sure to use one, for that is different then a quote. A quote is ascii ['] and an apostrophe is [ ’]. Have you verified the data uses the apostrophe and not the quote? My experience is that sometimes they look the same (depends on the font too).

You are a genius. You found the solution !
Wherever I wrote ‘Code unicode apostrophe’, I didn’t work or indicate the same caracter for both apostrophe and quote. But you gave me the right ascii code to use, and I FINALLY found the right caracter to use ! Here is the one : ’ (correct) and the other one ’ (incorrect, the one my keyboard doesn’t want to give me).
THANKS A LOT !
Have a wonderful day !
Vincent