Probably you had a problem to show a Euro sign on a web page like on the next figure.
Code source:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
<?php
$str = "Price: 99,99€";
echo htmlentities($str)."<br />";
echo html_entity_decode($str)."<br />";
?>
</body>
</html>
To show correctly sign Euro, you must set charset ISO-8859-15 (<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">) as you can see next picture.
Besides you set charset ISO-8859-15, you must use PHP function html_entity_decode(string) but must not use PHP function htmlentities(string).
Wow, Excellent post. This article is really very interesting and effective. I think its must be helpful for us. Thanks for sharing your informative.
ReplyDeletesocial exchange sites
earn money online
social bookmarking sites list
directory submission site list
article submission sites
blog commenting sites
forum posting sites
press release sites list
outsourcing
off page seo
seo tutorial
free seo tools
freelancing
freelancing sites
seo