Our website meta tag contains special characters such as "í and é" and when I share the website on Facebook the special characters show in a weird way, image attached. How can this be fixed?
Asked
Active
Viewed 1,350 times
1

Daniel G. Gabori
- 65
- 1
- 2
- 8
-
That is obviously some character encoding problem. What’s the encoding your site uses? – CBroe Mar 08 '16 at 10:46
-
where can i change the encoding? The developer doesn't answer and its fairly urgent. The site is made up of php files – Daniel G. Gabori Mar 08 '16 at 11:38
-
Depending on how your site is build, this might be a broader operation, and not done by changing one single thing. I suggest you start by reading http://stackoverflow.com/q/279170/1427878 to get a feel for where the character encoding comes into play. Make backups, before you change anything. – CBroe Mar 08 '16 at 12:04
1 Answers
1
- Include the Open Graph XML namespace extension to your HTML declaration
< html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
- Inside your use the following meta tag to define the image you want to use
< meta property="og:image" content="your_image_here" />
3.Visit https://developers.facebook.com/tools/debug/ and follow the instructions to change the final image for the preview.

smobx
- 67
- 9
-
Hi! Thanks for the help. Where should I include the Open Graph XML namespace extension? – Daniel G. Gabori Mar 08 '16 at 11:04
-
The site is made up of php files, it was made by our developer originally but i cant reach him now and it needs to be fixed ASAP... :/ – Daniel G. Gabori Mar 08 '16 at 11:06