My arabic website is created using weebly, today when i wanted to edited any page i found the page I am editing is with encoded page title! even after changing the title again to be arabic, nothing is happening and stil the title is encoded!
I checked my code and it is ok! :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
And this is the website: www.elbosna.com
Is there any solution to this wired problem that appeared only today?
The strings that you send to the function initPublishedFlyoutMenus are encoded incorrectly. Instead of strings like "title":"ال.. your code should contain strings like "title":"ال.. without the & escape code.
Some of the titles in the navigation menu are encoded correctly, so check the configuration on your side, what is the difference between correct and incorrect menu items. It may be something with the tools you use to edit the site's configuration
Related
I have started to try adding this to my site and I have a lot of frustrations on the lack of detail on the issue facebook is facing as the instructions are carefull followed, applied and tested. I even used tools like OpenGraphCheck.com which is able to retrieve the meta tags like shown here. I had even tried testing posting on LinkedIn the url and it works (only 'og:description' not printed). But Facebook is a crazy mess where it does not give you details and no matter how many times you tell it to recheck it will always say these errors. checking viewsource you can see everything is placed as expected. Thanks in advance for those who can assist :)
Sample OG Target: http://www.mypinoy.net/stocks/quotes/JFC
The Facebook scraper can be a bit fussy, when it gets served faulty HTML.
If you follow the See exactly what our scraper sees for your URL link at the bottom of the debug tool output, it gets displayed like this:
<!DOCTYPE html>
<html><body>
<p>
</p>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
…
Validating your HTML shows this as the first error,
Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>.
At line 1, column 1
is a ZERO WIDTH NO-BREAK SPACE, see Why is appearing in my HTML?
This can mess up the correct parsing of your document using a DOM parser, and that is likely the reason Facebook does not “see” your OG meta tags here.
So figure out where from this character makes its way into your output, and remove it.
I'm working on a site and a good portion of the URLs, but not all, are forcing to show Chinese characters in the URL description for Facebook shares (doesn't appear to happen with any other social media shares).
I've gone through everything I can find to help declare English as the site's language.
HTML & Open Graph:
<html lang="en" hreflang="en-us" >
<meta property="og:locale" content="en_US" />
Facebook Script call includes English:
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8&appId=161005447317900";
Though, when I use either the Share button built onto the page (part way down on the right) or paste the page's URL in Facebook it converts/interprets my characters into Chinese.
Example Screenshot:
Not sure it's worth noting, but I have attempted to change my charset from 8 to 16, but that didn't change anything.
Here a page on the live site with the problem.
In my case the problem was being caused by a <meta charset="UTF16"> declaration in the .
I had actually suspected that after finding some others commenting on this as a possibility in other Stackoverflow questions. However, I didn't catch it as Facebook's servers seem to keep cached responses/versions, so when you change it to utf-8, as an example, the link will still display the same results at times.
I decided to change it to utf-8 and let it sit for a couple of days and then come back and check - that did the trick.
I pasted in my HTML code into Exact Target (email vendor), using this character set:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
The HTML body text was in Russian, and I tested it in several browsers and email clients - looked fine, until it got to Russia. See attached screenshot I was provided with. Screen shot
Lots of UNICODE replacement characters.
What happened, and what do I do to make sure my Russian text works in Russia?
I have used a free template and used it as a master page in the visual web developer.
Each time I close the master page file and reopen it it will ask me for the encoding of the web page. The title is "Choose an encoding", and body is "Visual web developer was unable to determine the encoding of this file. Please choose an encoding from the list box below".
How can I fix this? How can I save the file with UTF-8 encoding from the beginning.
Try putting a tag like this inside the <head> element:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
That's how you identify the encoding to browsers. Not sure about the editor you're using.
I have a very simple PHP file. I had set the charset using PHP's header() function as below...
header('Content-Type: text/html; charset=utf8');
Nothing was overwriting it, as I inspected the headers and it was coming through fine.
I am using a Unicode arrow (→) on my page. It is directly on the page, and not processed by any string manipulation functions.
It worked fine on Firefox and Safari, but in IE8 it came out as a mess (2 weird glyphs).
After some frustration, I added this to my head as well...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
...and it fixed it.
What is the issue? Does IE8 ignore the charset in the header? Doesn't the http-equiv mean that it should be treated exactly like a normal header?
Your HTTP header contains utf8, but your meta tag contains utf-8. I'm fairly sure the latter is the correct name. Check if putting utf-8 in the HTTP header helps.