Using symbols in an email - email

I'm creating an email, I have:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I need to include a copyright symbol, should I write it in code:
©
Or use the symbol itself:
©

If you're using <meta charset="utf-8"> or some variation (what you have should be fine), using © is the safest bet.
Even the most incapable email clients like Outlook (both old and new versions) should render a ©.

Related

Can I remove tags from the emmet HTML boilerplate in VScode?

When I type ! and hit enter in an .html file I get a nice boilerplate like below:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
My question is can I remove the tag:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
I know I can add my own snippets but I haven't found a way to change the default HTML boilerplate when I type !
I think you can. But keep in mind that an update could overwrite this setting.
Open VSCode installation path and navigate to
.. VS Code\resources\app\extensions\emmet\dist\node\emmetNodeMain.js
just search and delete the next meta
meta[http-equiv='X-UA-Compatible'][content='IE=edge']+
near the secuence:
doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body"
This path could be different from one version to other.

unicode character doesnot shown in browser

In header section I have set
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
and lang="ne-np" is also set .
But while rendering on browser, Unicode character is converted to English character as shown in picture here.
Used bootstrap 4, jQuery 3.5.1
As like character shown in console, I need to render in on page. any help please.
note: actual character are : २०७७-०४-२०, but displayed character are: 2077-04-20

How to determine the display mode of MathML obtained from a Math Equation in a Microsoft Office document

I'm displaying following Microsoft Office Math equation in display mode in my Microsoft WORD. But when I get it's MathML (as explained here) and use it in following HTML file, the equation displays in inline mode.
Question: Is this bug in Microsoft Math feature. Or what else could be a reason? I think the MathML obtained from MS WORD should have the attribute display="block" in the <math...> tag but it doesn't. Why?
Math equation in WORD document
MathML obtained from above Math equation in WORD document:
<math xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"><mrow><munderover><mo stretchy="false">∑</mo><mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow><mrow><mn>100</mn></mrow></munderover><mrow><msub><mrow><mi>a</mi></mrow><mrow><mi>n</mi></mrow></msub></mrow></mrow></math>
HTML Page containing above MathML (obtained from MATH equation in MS WORD)
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>MathJax TeX to MathML Page</title>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
</head>
<body>
<p>Test</p>
<math xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"><mrow><munderover><mo stretchy="false">∑</mo><mrow><mi>n</mi><mo>=</mo><mn>0</mn></mrow><mrow><mn>100</mn></mrow></munderover><mrow><msub><mrow><mi>a</mi></mrow><mrow><mi>n</mi></mrow></msub></mrow></mrow></math>
</body>
</html>
Display view of the above HTML page
The <moverunder> should render that as you see it in Word (ref ). What browser is rendering the MathML that way when part of an HTML page? Are you using a rendering library (e.g., MathJax ) or just letting the browser render it? As it stands, despite being part of the HTML5 spec, MathML still isn’t as widely supported in most browsers as we’d all like. I suspect it may render even worse in another browser (if that is a concern).

Facebook Article Problem

Ok here is the think
suppose you want to submit a link to your mates wall,
You copy/paste a link and facebook generates title, image and description.
Curently i am working on http://www.compra.gr
When you want to submit this link (http://www.compra.gr) facebook generates characters that are not recognised.
When you want to submit http://compra.gr/index.php?option=com_content&view=category&layout=blog&id=35&Itemid=54
Facebook generates title,image and description normally.
I know that facebook takes the information from metadata. I corrected the metadata, however nothing happened.
Please help me if someone has a a clue what is going on.
Thank you in advance.
PS the site has copyright protection, in order to view the source code use google chrome and at the address bar enter view-source:http://compra.gr/
I know whats the problem, your site does not have Open Graph tags!
Check out: https://developers.facebook.com/docs/opengraph/
Here's a snippet for you to understand, add this to your site and then use
URL Linter to Debug: http://developers.facebook.com/tools/lint/
Open Graph Tags Snippet:
<!doctype html>
<html xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook.com/2008/fbml" lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
<meta property="og:title" content="YOUR-POST-TITLE"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://YOUR-SITE-URL"/>
<meta property="og:image" content="http://YOUR-IMAGE-URL"/>
<meta property="og:site_name" content="YOUR-SITE-TITLE"/>
<meta property="og:description" content="YOUR-DESCRIPTION"/>
<meta property="fb:admins" content="YOUR-USER-ID"/>
</head>
.....
</html>

Facebook Share button encoding problem

I am trying to make a Facebook share button on my site. Everything goes well except Facebook garbles non-ascii symbols obtained from meta tags. For example:
I am sharing a page with URL http://example.com/facebook/.
The page at http://example.com/facebook/ has the following meta tags inside its HTML:
<head>
...
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
...
<meta name="title" content="John Smith won £10000!" />
<meta name="description" content="Wanna be next John Smith?" />
<link rel="image_src" href="http://example.com/img/logo.jpg" />
...
</head>
The problem is that a pound (£) sign is shown as � symbol in Facebook share pop-in, that's not a desired behaviour.
I would be grateful for any thoughts.
I would recommend replacing the pound-sign with the equivalent entity, i.e. £ = £. You may also need to add a charset definition, e.g. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> In fact, you might be able to get away with just the meta tag -- just put it before the others.