The problem with Facebook for non-Russians

We have an Arabic site and we are trying to split Url into a face book. Url looks like

http://www.website.com/ar / شاهدى-عروض-الأزياء-العالمية-بعيون-عربية / موضة / story / 75

The problem is that facebook does not display the thumbnails specified in the link above. When we debugged this through a violinist, we found that the url that is trying to access facebook is not the same as the one above, this url is like

www.website.com/ar/%c3%98%c2%b4%c3%98%c2%a7%c3%99%e2%80%a1%c3%98%c2%af%c3%99% e2% 80 % b0-% C3% 98% C2% b9% C3% 98% C2% b1% c3% 99% CB% 86% C3% 98% C2% b6-% C3% 98% C2% a7% c3% 99% E2 % 80% 9e% C3% 98% C2% a3% C3% 98% C2% b2% C3% 99% c5% a0% C3% 98% C2% a7% C3% 98% C2% A1-% c3% 98% C2% a7% C3% 99% E2% 80% 9e% C3% 98% C2% b9% C3% 98% C2% a7% C3% 99% E2% 80% 9e% C3% 99% E2% 80% a6% C3% 99% c5% a0% C3% 98% C2% a9-% C3% 98% C2% a8% C3% 98% C2% b9% C3% 99% c5% a0% c3% 99% CB% 86% C3 % 99% E2% 80% a0-% C3% 98% C2% b9% C3% 98% C2% b1% C3% 98% C2% a8% C3% 99% c5% a0% C3% 98% C2% a9 / % C3% 99% E2% 80% a6% C3% 99% CB% 86% C3% 98% C2% b6% C3% 98% C2% A9 / history / 75

I need to know what facebook did with the url to show it. Another thing I know is that this URL is not UTF8 encoded. If the given Arabic url is converted to UTF8, then it looks as follows, and not as above

www.website.com/ar/%D8%B4%D8%A7%D9%87%D8%AF%D9%89-%D8%B9%D8%B1%D9%88%D8%B6-% D8% A7 % D9% 84% D8% A3% D8% B2% D9% 8A% D8% A7% D8% A1-% D8% A7% D9% 84% D8% B9% D8% A7% D9% 84% D9% 85% D9% 8A% D8% A9-% D8% A8% D8% B9% D9% 8A% D9% 88% D9% 86-% D8% B9% D8% B1% D8% A8% D9% 8A% D8% A9 / % D9% 85% D9% 88% D8% B6% D8% A9 / history / 75

So, I need to know what encoding the person’s book uses or what facebook does to access the following URL when we share the URL

www.website.com/ar/ شاهدى-عروض-الأزياء-العالمية-بعيون-عربية / موضة / story / 75

+3
1
http://www.website.com/ar/شاهدى-عروض-الأزياء-العالمية-بعيون-عربية/موضة/story/75

URI ( URL). IRI. , IRI ( SO, , !).

, , , URI , UTF-8, (%D8%B4...). IRI, , HTML- URI.

%c3%98%c2%b4... , , , UTF-8, , ISO-8859-1 ( UTF-8-URL-, " UTF-8" ). IRI Facebook? , , UTF-8, ISO-8859-1, Facebook. URI .

+4

Source: https://habr.com/ru/post/1766936/


All Articles