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?
Related
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 have product titles such as
Cheap Samsung 22" Television
which I need to include in an og:title tag as such:
<meta property="og:title" content="Cheap Samsung 22" Television"/>
However when Facebook tries to render it within a rich snippet, it doesn't render the quotation and displays it as is:
Cheap Samsung 22" Television
I don't understand why it doesn't render it properly so it reads as intended? If I don't encode my string and just place it in there like this:
<meta property="og:title" content="Cheap Samsung 22" Television"/>
Then Facebook thinks the quote at the end of the 22 which means inches is the end of the content attribute and hence the string gets chopped off like this:
Cheap Samsung 22"
How do I tackle this? I am using ColdFusion's EncodeForHTMLAttribute(mystring) function to accomplish the HTML encoding on the content attribute.
UPDATE: The string was being double-encoded by ColdFusion. First on the way in to the database, and then once again when outputting on the page. I used Canonicalize after performing an Anti-Samy on the way in so the string didn't contain any encoding in the DB table. Problem solved.
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
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.